From c450eea96f9bc2974298edd8cdcb741fbd669dbf Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@digia.com> Date: Tue, 2 Oct 2012 12:34:00 +0200 Subject: [PATCH] Make kit config tidy again Do allow kit config to become "tidy" again after a change made it dirty. Change-Id: I764093c2ce199633d8f67bea0e4747d6b0bfd2b7 Reviewed-by: Daniel Teske <daniel.teske@digia.com> --- src/plugins/projectexplorer/kitmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/kitmodel.cpp b/src/plugins/projectexplorer/kitmodel.cpp index 9e79e4b2ef1..cbfc9996958 100644 --- a/src/plugins/projectexplorer/kitmodel.cpp +++ b/src/plugins/projectexplorer/kitmodel.cpp @@ -266,7 +266,7 @@ void KitModel::setDirty() KitConfigWidget *w = qobject_cast<KitConfigWidget *>(sender()); foreach (KitNode *n, m_manualRoot->childNodes) { if (n->widget == w) { - n->changed = true; + n->changed = n->widget->isDirty(); emit dataChanged(index(n, 0), index(n, columnCount(QModelIndex()))); } } -- GitLab