debugger: move watcher saving to better position

This commit is contained in:
hjk
2011-02-28 18:55:54 +01:00
parent c10bb9e5f7
commit 1b47a7f464

View File

@@ -1259,6 +1259,8 @@ void WatchHandler::watchExpression(const QString &exp)
data.exp = exp.toLatin1();
data.name = exp;
m_watcherNames[data.exp] = watcherCounter++;
saveWatchers();
if (exp.isEmpty())
data.setAllUnneeded();
data.iname = watcherName(data.exp);
@@ -1273,7 +1275,6 @@ void WatchHandler::watchExpression(const QString &exp)
insertData(data);
}
updateWatchersWindow();
saveWatchers();
emitAllChanged();
}