aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/autotestplugin.cpp
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2016-10-25 14:30:51 +0200
committerChristian Stenger <[email protected]>2016-10-26 10:00:19 +0000
commitcbc4ee0af6cde378ebb8f17158ae476b335497bd (patch)
tree6169acdc874423227efc588f100223397776cbe0 /src/plugins/autotest/autotestplugin.cpp
parent2b27f30538d165a14a5029580f722c8e9d417812 (diff)
AutoTest: Fix enabled state of global Tests menu
If tests are running the Tests menu's (current) items are all disabled which led to having the menu disabled as well. Ensure to have the menu enabled regardless the sub items' state. Change-Id: I561f1eb75637f03a27df012129455e06be38ea87 Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/autotest/autotestplugin.cpp')
-rw-r--r--src/plugins/autotest/autotestplugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp
index abde0d4d69a..976bee11c85 100644
--- a/src/plugins/autotest/autotestplugin.cpp
+++ b/src/plugins/autotest/autotestplugin.cpp
@@ -95,6 +95,7 @@ void AutotestPlugin::initializeMenuEntries()
{
ActionContainer *menu = ActionManager::createMenu(Constants::MENU_ID);
menu->menu()->setTitle(tr("&Tests"));
+ menu->setOnAllDisabledBehavior(ActionContainer::Show);
QAction *action = new QAction(tr("Run &All Tests"), this);
Command *command = ActionManager::registerAction(action, Constants::ACTION_RUN_ALL_ID);