Commit e6b2426b authored by hjk's avatar hjk
Browse files

Debugger: Prevent editing of elided items in Locals view



For a long string, only the parts needed to fill the Value column is
retrieved. Trying to edit (double click on Value entry) this resulted
in truncation of the string.

Change-Id: I1e993bfe52cee933bd32c866448eedc788807bd3
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 2bc96c76
......@@ -949,13 +949,13 @@ Qt::ItemFlags WatchItem::flags(int column) const
// FIXME: Forcing types is not implemented yet.
//if (idx.column() == 2)
// return editable; // Watcher types can be set by force.
if (column == 1 && valueEditable)
if (column == 1 && valueEditable && !elided)
return editable; // Watcher values are sometimes editable.
}
} else if (isLocal()) {
if (state != InferiorStopOk && !engine->hasCapability(AddWatcherWhileRunningCapability))
return Qt::ItemFlags();
if (column == 1 && valueEditable)
if (column == 1 && valueEditable && !elided)
return editable; // Locals values are sometimes editable.
} else if (isInspect()) {
if (column == 1 && valueEditable)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment