From 2347f0d1082728c047217972a17f9ceaaecf040c Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 8 May 2019 13:24:32 +0200 Subject: [PATCH] Kit options widget: Update the "unique display name" warning on removal If we had two kits with the same name and removed one of them, the remaining one would still show the warning about a non-unique display name. This is fixed now. Change-Id: I99e379c4885eb19021ee835d7fb9332f1795623c Reviewed-by: Christian Stenger --- src/plugins/projectexplorer/kitmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/projectexplorer/kitmodel.cpp b/src/plugins/projectexplorer/kitmodel.cpp index e4d8dae8eed..937615154f2 100644 --- a/src/plugins/projectexplorer/kitmodel.cpp +++ b/src/plugins/projectexplorer/kitmodel.cpp @@ -226,6 +226,7 @@ void KitModel::markForRemoval(Kit *k) delete node; else m_toRemoveList.append(node); + validateKitNames(); } Kit *KitModel::markForAddition(Kit *baseKit) @@ -321,6 +322,7 @@ void KitModel::removeKit(Kit *k) if (m_defaultNode == n) m_defaultNode = nullptr; delete n; + validateKitNames(); return; } }