Commit 72f3f2f4 authored by Lorenz Haas's avatar Lorenz Haas

Beautifier: Fix hidden menu on Linux

Task-number: QTCREATORBUG-15936
Change-Id: Id9387495a8c770167292fa526727f969b7408b2c
Reviewed-by: default avatarDavid Schulz <>
parent 483fcb6a
......@@ -59,7 +59,6 @@
#include <QProcess>
#include <QScrollBar>
#include <QTextBlock>
#include <QTimer>
#include <QtPlugin>
using namespace TextEditor;
......@@ -179,6 +178,7 @@ bool BeautifierPlugin::initialize(const QStringList &arguments, QString *errorSt
Core::ActionContainer *menu = Core::ActionManager::createMenu(Constants::MENU_ID);
menu->menu()->setTitle(QCoreApplication::translate("Beautifier", Constants::OPTION_TR_CATEGORY));
foreach (BeautifierAbstractTool *tool, m_tools) {
......@@ -188,9 +188,7 @@ bool BeautifierPlugin::initialize(const QStringList &arguments, QString *errorSt
// The single shot is needed, otherwise the menu will stay disabled even
// when the submenu's actions get enabled later on.
QTimer::singleShot(0, this, SLOT(updateActions()));
return true;
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