aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2010-05-19 15:15:56 +0200
committerhjk <[email protected]>2010-05-19 15:16:30 +0200
commit5c4b0f886619c211c758de0e55e2f5f556dd12d0 (patch)
treecf7da95a3937f4df1acc06eb9076548a0303d98e /src/plugins/debugger/watchhandler.cpp
parent213a18db873e927c577944a942f20f773eac9b4d (diff)
debugger: fix resetting type formats in Locals and Watchers
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index f10e8fc5ed3..3be39eea5ac 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -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);