From 13ad6ef6fe11c70f2fa07bd4d720f2341468b1a9 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Fri, 20 Nov 2009 18:10:46 +0100
Subject: [PATCH] Revert "debugger: force a call to canFetchMore() if an
 WatchItem gains children"

This reverts commit 4f94145f4b6a1505e106b4e283bfeacac833ab5f
---
 src/plugins/debugger/watchhandler.cpp | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index f945d6d5faf..679fec5005c 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -927,13 +927,6 @@ void WatchModel::insertData(const WatchData &data)
         oldItem->generation = generationCounter;
         QModelIndex idx = watchIndex(oldItem);
         emit dataChanged(idx, idx.sibling(idx.row(), 2));
-        // HACK: Make the view call canFetchMore(). This is needed in 
-        // case we were stepping from a state where the item had no 
-        // children to a state where it has one, like inserting the 
-        // first item into a container.
-        QModelIndex dummy = index.child(0, 0);
-        beginInsertRows(dummy, 0, 0);
-        endInsertRows();
     } else {
         // add new entry
         //MODEL_DEBUG("ADD : " << data.iname << data.value);
-- 
GitLab