debugger: fix resetting type formats in Locals and Watchers

This commit is contained in:
hjk
2010-05-19 15:15:56 +02:00
parent 213a18db87
commit 5c4b0f8866
2 changed files with 15 additions and 2 deletions

View File

@@ -1385,7 +1385,10 @@ QString WatchHandler::watcherEditPlaceHolder()
void WatchHandler::setFormat(const QString &type, int format)
{
m_typeFormats[type] = format;
if (format == -1)
m_typeFormats.remove(type);
else
m_typeFormats[type] = format;
saveTypeFormats();
m_return->emitDataChanged(1);
m_locals->emitDataChanged(1);