1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

[MainMenu] Create toolbars and sidebars menu to fix shortcuts

Shortcuts for sidebars are now available even before first showing
sidebars menu
This commit is contained in:
nowrep 2014-03-26 10:10:33 +01:00
parent 586a9d2242
commit 525c4ff5cf

View File

@ -557,6 +557,10 @@ void MainMenu::init()
QMenu* encodingMenu = new QMenu(tr("Character &Encoding"));
connect(encodingMenu, SIGNAL(aboutToShow()), this, SLOT(aboutToShowEncodingMenu()));
// Create menus to make shortcuts available even before first showing the menu
m_window->createToolbarsMenu(toolbarsMenu);
m_window->createSidebarsMenu(sidebarMenu);
m_menuView->addMenu(toolbarsMenu);
m_menuView->addMenu(sidebarMenu);
ADD_CHECKABLE_ACTION("View/ShowStatusBar", m_menuView, QIcon(), tr("Sta&tus Bar"), SLOT(showStatusBar()), "");