Debugger: Make "Memory Editor Showing Stack Layout" easier accessible

The restriction to a local active item is not needed, as the whole
submenu will be deactivated when the debugger is not debugging.

Change-Id: I36f5098d549dcb72f474caad8cfd13a6aa961212
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-06-18 13:16:16 +02:00
parent 1bbe92df49
commit b0e31ddf43

View File

@@ -1795,9 +1795,8 @@ QMenu *WatchModel::createMemoryMenu(WatchItem *item, QWidget *parent)
createPointerActions,
[this, item, pos] { addVariableMemoryView(false, item, true, pos); });
addAction(menu, tr("Open Memory Editor Showing Stack Layout"),
item && item->isLocal(),
true,
[this, pos] { addStackLayoutMemoryView(false, pos); });
addAction(menu, tr("Open Memory Editor..."),