Fix assigning configured shortcuts to QuickCommands

As QuickCommands will be created in MainWindow widgets mainly, we have
to create all widgets before we load the keyboard shortcuts.
This commit is contained in:
David Capello 2017-11-30 16:22:27 -03:00
parent 297dbbf913
commit 264c59bbc1

View File

@ -90,9 +90,6 @@ MainWindow::MainWindow()
, m_devConsoleView(nullptr) , m_devConsoleView(nullptr)
#endif #endif
{ {
// Load all menus by first time.
AppMenus::instance()->reload();
m_menuBar = new MainMenuBar(); m_menuBar = new MainMenuBar();
m_notifications = new Notifications(); m_notifications = new Notifications();
m_contextBar = new ContextBar(); m_contextBar = new ContextBar();
@ -119,6 +116,9 @@ MainWindow::MainWindow()
m_workspace->setExpansive(true); m_workspace->setExpansive(true);
m_notifications->setVisible(false); m_notifications->setVisible(false);
// Load all menus by first time.
AppMenus::instance()->reload();
// Setup the menus // Setup the menus
m_menuBar->setMenu(AppMenus::instance()->getRootMenu()); m_menuBar->setMenu(AppMenus::instance()->getRootMenu());