From 334b7cb4263f6f831d1fa568c3116bbfc1d3dcb2 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Tue, 17 Jan 2012 18:51:45 +0100
Subject: [PATCH] debugger: don't allow L&E expansion while inferior runs

Change-Id: I1179f2b3b0f1e0099e5ab2a30b09e1216cd68fd7
Reviewed-by: hjk <qthjk@ovi.com>
---
 src/plugins/debugger/watchhandler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 9fea42c7980..bc2d8462e0c 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -564,7 +564,7 @@ bool WatchModel::canFetchMore(const QModelIndex &index) const
 {
     WatchItem *item = watchItem(index);
     QTC_ASSERT(item, return false);
-    return index.isValid() && !m_fetchTriggered.contains(item->iname);
+    return index.isValid() && m_handler->m_contentsValid && !m_fetchTriggered.contains(item->iname);
 }
 
 void WatchModel::fetchMore(const QModelIndex &index)
-- 
GitLab