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:
parent
586a9d2242
commit
525c4ff5cf
|
@ -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()), "");
|
||||
|
|
Loading…
Reference in New Issue
Block a user