aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/kitmanagerconfigwidget.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-04-18 09:19:19 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-04-24 08:42:01 +0000
commit4dcea384ddc8d3d37cf3df2ffd8f8178c2f4a7d6 (patch)
tree73ef6b6eb38a16f135a49bf822b733e7bc1b272a /src/plugins/projectexplorer/kitmanagerconfigwidget.h
parent84055b6315688f1af269ab180eafcdfc2284d80d (diff)
ProjectExplorer: Fix kit duplication on pressing "Apply"
The KitModel's check against adding the same kit again relied on the new Kit object already existing before it is registered, which is no longer true since 3aea3a13cb. Instead, we now have a flag indicating that registration of a currently temporary kit is currently ongoing. Change-Id: I6d2da19188b63d5ec68e11b5804ecf7c5e88676a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/kitmanagerconfigwidget.h')
-rw-r--r--src/plugins/projectexplorer/kitmanagerconfigwidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kitmanagerconfigwidget.h b/src/plugins/projectexplorer/kitmanagerconfigwidget.h
index 8617a118cf..9eda98582d 100644
--- a/src/plugins/projectexplorer/kitmanagerconfigwidget.h
+++ b/src/plugins/projectexplorer/kitmanagerconfigwidget.h
@@ -65,6 +65,7 @@ public:
Kit *workingCopy() const;
bool configures(Kit *k) const;
+ bool isRegistering() const { return m_isRegistering; }
void setIsDefaultKit(bool d);
bool isDefaultKit() const;
void removeKit();
@@ -104,6 +105,7 @@ private:
bool m_isDefaultKit = false;
bool m_fixingKit = false;
bool m_hasUniqueName = true;
+ bool m_isRegistering = false;
QList<QAction *> m_actions;
mutable QString m_cachedDisplayName;
};