aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-03-19 13:21:26 +0100
committerEike Ziller <eike.ziller@qt.io>2018-03-20 09:55:48 +0000
commit6c8cd2a71fbe72752ee83e6dd5d395644dee94b7 (patch)
tree3667176cd8598f6359b042d38bc06155e6ae69a2
parent4a6339aae2db126928c22e55398ddf3f8b7d2d24 (diff)
Fix identification of run controls with application targets
The run configuration's extraId is checked against the RunConfigurationCreationInfos' targetName and buildKey to find out if the run configuration came from that creation info. So we need to implement that in the run configuration. Change-Id: I396605a19b39837d769287d6753cf16ac4d9e77d Reviewed-by: hjk <hjk@qt.io>
-rw-r--r--plugins/haskell/haskellrunconfiguration.cpp7
-rw-r--r--plugins/haskell/haskellrunconfiguration.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/plugins/haskell/haskellrunconfiguration.cpp b/plugins/haskell/haskellrunconfiguration.cpp
index 5ada4cc..5e0c6e2 100644
--- a/plugins/haskell/haskellrunconfiguration.cpp
+++ b/plugins/haskell/haskellrunconfiguration.cpp
@@ -65,6 +65,13 @@ HaskellRunConfiguration::HaskellRunConfiguration(Target *parent)
addExtraAspect(environmentAspect);
}
+QString HaskellRunConfiguration::extraId() const
+{
+ // must be the RunConfigurationCreationInfo.targetName or .buildKey
+ // (for Target::updateDefaultRunConfigurations())
+ return m_executable;
+}
+
QWidget *HaskellRunConfiguration::createConfigurationWidget()
{
auto details = new Utils::DetailsWidget;
diff --git a/plugins/haskell/haskellrunconfiguration.h b/plugins/haskell/haskellrunconfiguration.h
index 3b40694..83efde7 100644
--- a/plugins/haskell/haskellrunconfiguration.h
+++ b/plugins/haskell/haskellrunconfiguration.h
@@ -43,6 +43,8 @@ class HaskellRunConfiguration : public ProjectExplorer::RunConfiguration
public:
HaskellRunConfiguration(ProjectExplorer::Target *parent);
+ QString extraId() const final;
+
private:
QWidget *createConfigurationWidget() final;
ProjectExplorer::Runnable runnable() const final;