aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2010-02-04 13:20:11 +0100
committerhjk <[email protected]>2010-02-04 13:28:51 +0100
commitc64b202a2cafd2990d43c56f1e1b9bb2b766a870 (patch)
treeb0040a69c54c1a959ff31abccc56890bfc6d6bf3 /src/plugins/debugger/watchhandler.cpp
parentbf06f38a0386e026f9e38a6a803a9be3216ca8da (diff)
debugger: fix unneeded fetchMore() calls by removing a mis-placed beginCycle()
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index f0b44581440..353b30b3fec 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -407,7 +407,7 @@ void WatchModel::endCycle()
{
removeOutdated();
emit enableUpdates(true);
- // Prevent 'fetchMore()' from being triggered
+ // Prevent 'fetchMore()' from being triggered.
m_inExtraLayoutChanged = true;
emit layoutChanged();
QTimer::singleShot(0, this, SLOT(resetExtraLayoutChanged()));
@@ -669,8 +669,10 @@ static QString formattedValue(const WatchData &data, int format)
bool WatchModel::canFetchMore(const QModelIndex &index) const
{
+ WatchItem *item = watchItem(index);
+ QTC_ASSERT(item, return false);
return !m_inExtraLayoutChanged && index.isValid()
- && !m_fetchTriggered.contains(watchItem(index)->iname);
+ && !m_fetchTriggered.contains(item->iname);
}
void WatchModel::fetchMore(const QModelIndex &index)