diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-05-15 16:15:08 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-05-15 14:40:54 +0000 |
commit | b9b3717007312a5bb4dcfd70e3205f706d3a19cb (patch) | |
tree | 46f841e3b1b43f4e5b21706979417b88551b8845 /src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp | |
parent | f19de84e576de68c70a3aad5c2fd217271078b91 (diff) |
RemoteLinux: Fix creation of environment aspect widget
This was forgotten in ae9fff17a1.
Task-number: QTCREATORBUG-18167
Change-Id: Ib1e3d06ee822dff6b991d967b2f68148cc9c55c6
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp')
-rw-r--r-- | src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp b/src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp index 41432ba29bf..d821945a13e 100644 --- a/src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp +++ b/src/plugins/remotelinux/remotelinuxenvironmentaspect.cpp @@ -35,16 +35,13 @@ namespace RemoteLinux { RemoteLinuxEnvironmentAspect::RemoteLinuxEnvironmentAspect(ProjectExplorer::RunConfiguration *rc) : ProjectExplorer::EnvironmentAspect(rc) -{ } - -RemoteLinuxEnvironmentAspect *RemoteLinuxEnvironmentAspect::create(ProjectExplorer::RunConfiguration *parent) const { - return new RemoteLinuxEnvironmentAspect(parent); + setRunConfigWidgetCreator([this] { return new RemoteLinuxEnvironmentAspectWidget(this); }); } -ProjectExplorer::RunConfigWidget *RemoteLinuxEnvironmentAspect::createConfigurationWidget() +RemoteLinuxEnvironmentAspect *RemoteLinuxEnvironmentAspect::create(ProjectExplorer::RunConfiguration *parent) const { - return new RemoteLinuxEnvironmentAspectWidget(this); + return new RemoteLinuxEnvironmentAspect(parent); } QList<int> RemoteLinuxEnvironmentAspect::possibleBaseEnvironments() const |