Debugger: Make watchers editable in coredump

Task-number: QTCREATORBUG-15001
Change-Id: Icba8175e2f3ca0ed07815fb063dec660c722231d
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-09-03 09:06:47 +03:00
committed by Orgad Shaneh
parent f8fa24d901
commit 91848f4755

View File

@@ -934,7 +934,7 @@ Qt::ItemFlags WatchItem::flags(int column) const
const Qt::ItemFlags editable = notEditable | Qt::ItemIsEditable; const Qt::ItemFlags editable = notEditable | Qt::ItemIsEditable;
if (state == InferiorUnrunnable) if (state == InferiorUnrunnable)
return notEditable; return (isWatcher() && column == 0 && iname.count('.') == 1) ? editable : notEditable;
if (isWatcher()) { if (isWatcher()) {
if (state != InferiorStopOk if (state != InferiorStopOk