aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/haskell/haskellrunconfiguration.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2018-03-19 13:21:26 +0100
committerEike Ziller <[email protected]>2018-03-20 09:55:48 +0000
commit6c8cd2a71fbe72752ee83e6dd5d395644dee94b7 (patch)
tree3667176cd8598f6359b042d38bc06155e6ae69a2 /plugins/haskell/haskellrunconfiguration.cpp
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 <[email protected]>
Diffstat (limited to 'plugins/haskell/haskellrunconfiguration.cpp')
-rw-r--r--plugins/haskell/haskellrunconfiguration.cpp7
1 files changed, 7 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;