debugger: prevent watched expressions from re-appearing

Task-number: QTCREATORBUG-7408
Change-Id: I2936aff74b629b6d58cbcd09e023346dabdf191f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
hjk
2012-05-24 16:49:18 +02:00
committed by Friedemann Kleint
parent ba185b8336
commit 557c73adfb
3 changed files with 14 additions and 15 deletions

View File

@@ -1615,8 +1615,13 @@ void WatchHandler::removeAllData()
void WatchHandler::removeData(const QByteArray &iname)
{
WatchItem *item = m_model->findItem(iname);
if (item)
m_model->destroyItem(item);
if (!item)
return;
if (item->isWatcher()) {
theWatcherNames.remove(item->exp);
saveWatchers();
}
m_model->destroyItem(item);
updateWatchersWindow();
}