summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2010-09-23 08:19:49 +0200
committerhjk <qtc-committer@nokia.com>2010-09-23 08:24:52 +0200
commit6b665ac99182fe6e23b99e8de9931e61e526c405 (patch)
tree74827da10340014186acafea2dd2ef23d7d43cc7 /src/plugins/debugger/watchhandler.cpp
parent1c4e0d6d4b91eca718291ca119d49db52c6ab9d8 (diff)
downloadqt-creator-6b665ac99182fe6e23b99e8de9931e61e526c405.tar.gz
debugger: make only toplevel watchers editable
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index b790da7d3a..80a9a71fba 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -922,10 +922,10 @@ Qt::ItemFlags WatchModel::flags(const QModelIndex &idx) const
const WatchData &data = *watchItem(idx);
- if (idx.column() == 0)
- return editable; // Watcher names are editable.
-
if (data.isWatcher()) {
+ if (idx.column() == 0 && data.iname.count('.') == 1)
+ return editable; // Watcher names are editable.
+
if (!data.name.isEmpty()) {
// FIXME: Forcing types is not implemented yet.
//if (idx.column() == 2)
@@ -1054,7 +1054,7 @@ void WatchModel::insertBulkData(const QList<WatchData> &list)
return;
#endif
// This method does not properly insert items in proper "iname sort
- // order", leading to random removal of items in removeOutDated();
+ // order", leading to random removal of items in removeOutdated();
//qDebug() << "WMI:" << list.toString();
//static int bulk = 0;