diff options
author | hjk <[email protected]> | 2010-06-23 14:11:52 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2010-06-23 14:12:14 +0200 |
commit | ed2862acce3f22bd1d7c83203eb445696426d438 (patch) | |
tree | 8c1f065dc244d490d6c8702bb544246875590e25 /src/plugins/debugger/watchhandler.cpp | |
parent | e7088e9c42ff5901773e7dafe39bae9cab7b71b6 (diff) |
debugger: remove special mechanism to update watcher and return window
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 63a5a578353..2118ddd9ea4 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -1226,6 +1226,7 @@ void WatchHandler::watchExpression(const QString &exp) m_engine->updateWatchData(data); updateWatchersWindow(); saveWatchers(); + emitAllChanged(); } static void swapEndian(char *d, int nchar) @@ -1340,13 +1341,14 @@ void WatchHandler::removeWatchExpression(const QString &exp0) break; } } + updateWatchersWindow(); + emitAllChanged(); } void WatchHandler::updateWatchersWindow() { - const bool showWatchers = m_watchers->rowCount(QModelIndex()) > 0; - const bool showReturn = m_return->rowCount(QModelIndex()) > 0; - plugin()->updateWatchersWindow(showWatchers, showReturn); + // Force show/hide of watchers and return view. + plugin()->updateState(m_engine); } void WatchHandler::updateWatchers() @@ -1370,7 +1372,6 @@ void WatchHandler::loadWatchers() m_watcherNames[exp.toLatin1()] = watcherCounter++; //qDebug() << "LOAD WATCHERS: " << m_watchers; - //reinitializeWatchersHelper(); } QStringList WatchHandler::watchedExpressions() const |