From 8d31cd48a7ab11ebe1be8069b33cf4396813ab5e Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 19 Mar 2013 17:05:21 +0100 Subject: [PATCH] QmlDesigner: Disable stack menu if no item is selected Change-Id: I2987b6a49b7adb34036a22876caed2f4c4012109 Reviewed-by: Thomas Hartmann --- .../components/componentcore/designeractionmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp b/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp index 35431427b5a..88981371674 100644 --- a/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp +++ b/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp @@ -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)