QmlDesigner: Disable stack menu if no item is selected

Change-Id: I2987b6a49b7adb34036a22876caed2f4c4012109
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-03-19 17:05:21 +01:00
committed by Thomas Hartmann
parent 4d421acad3
commit 8d31cd48a7

View File

@@ -309,7 +309,7 @@ using namespace SelectionContextFunctors;
bool multiSelection(const SelectionContext &context)
{
return !singleSelection(context);
return !singleSelection(context) && selectionNotEmpty(context);
}
bool singleSelectionAndInBaseState(const SelectionContext &context)