Commit 1b47a7f4 authored by hjk's avatar hjk
Browse files

debugger: move watcher saving to better position

parent c10bb9e5
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment