From 17f1c8a0f5b90838a6e56c75f8630cf07cde5455 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Thu, 19 Feb 2009 10:29:25 +0100
Subject: [PATCH] Fixes:    debugger: watch view: collapsed items did not stay
 collapsed

---
 src/plugins/debugger/watchhandler.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index a00b7fad7ce..0068d364a86 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -790,9 +790,9 @@ void WatchHandler::collapseChildren(const QModelIndex &idx)
         return;
     }
     QTC_ASSERT(checkIndex(idx.internalId()), return);
-#if 0
     QString iname0 = m_displaySet.at(idx.internalId()).iname;
     MODEL_DEBUG("COLLAPSE NODE" << iname0);
+#if 0
     QString iname1 = iname0 + '.';
     for (int i = m_completeSet.size(); --i >= 0; ) {
         QString iname = m_completeSet.at(i).iname;
@@ -803,10 +803,10 @@ void WatchHandler::collapseChildren(const QModelIndex &idx)
             m_expandedINames.remove(iname);
         }
     }
+#endif
     m_expandedINames.remove(iname0);
     //MODEL_DEBUG(toString());
     //rebuildModel();
-#endif
 }
 
 void WatchHandler::expandChildren(const QModelIndex &idx)
-- 
GitLab