forked from qt-creator/qt-creator
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:
committed by
Thomas Hartmann
parent
4d421acad3
commit
8d31cd48a7
@@ -309,7 +309,7 @@ using namespace SelectionContextFunctors;
|
|||||||
|
|
||||||
bool multiSelection(const SelectionContext &context)
|
bool multiSelection(const SelectionContext &context)
|
||||||
{
|
{
|
||||||
return !singleSelection(context);
|
return !singleSelection(context) && selectionNotEmpty(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool singleSelectionAndInBaseState(const SelectionContext &context)
|
bool singleSelectionAndInBaseState(const SelectionContext &context)
|
||||||
|
|||||||
Reference in New Issue
Block a user