Commit cbc4ee0a authored by Christian Stenger's avatar Christian Stenger
Browse files

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's avatarDavid Schulz <david.schulz@qt.io>
parent 2b27f305
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment