summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-03-20 14:13:27 +0100
committerhjk <hjk@theqtcompany.com>2015-03-25 10:50:47 +0000
commita6c81b02bd6ac983a82708a683209357f979601e (patch)
treeef837fcb74e9caca75d524aa1ff9930732fae5e7 /src/plugins/debugger
parent465ee1f716b7ab406fc4276a7f22a3c90a65949e (diff)
downloadqt-creator-a6c81b02bd6ac983a82708a683209357f979601e.tar.gz
Debugger: Fix regression in "Show in separate Window"
After the tree model changes, the main insertion path did not trigger the update in the separate Window anymore. Task-number: QTCREATORBUG-14101 Change-Id: I90d8c0874be473a67c6260ca9bf63099f5d54a06 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/watchhandler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 8b7a360aee..26b9550217 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -1177,6 +1177,8 @@ void WatchModel::insertItem(WatchItem *item)
QTC_ASSERT(parent, return);
const int row = findInsertPosition(parent->children(), item);
parent->insertChild(row, item);
+
+ item->walkTree([this](TreeItem *sub) { showEditValue(*static_cast<WatchItem *>(sub)); });
}
void WatchModel::reexpandItems()