Commit 8ce88bf2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make sure that it doesn't crash on kontact

parent 77047101
Pipeline #64784 passed with stage
in 5 minutes and 30 seconds
......@@ -72,6 +72,7 @@ void MainWindow::initActions()
"the application-wide shortcuts."));
KStandardAction::configureToolbars(this, &MainWindow::configureToolbars, actionCollection());
KStandardAction::preferences(this, &MainWindow::configure, actionCollection());
if (menuBar()) {
mHamburgerMenu = KStandardAction::hamburgerMenu(nullptr, nullptr, actionCollection());
mHamburgerMenu->setShowMenuBarAction(mShowMenuBarAction);
mHamburgerMenu->setMenuBar(menuBar());
......@@ -82,6 +83,7 @@ void MainWindow::initActions()
// q and mHamburgerMenu's aboutToShowMenu signal.
disconnect(mHamburgerMenu, &KHamburgerMenu::aboutToShowMenu, this, nullptr);
});
}
}
void MainWindow::updateHamburgerMenu()
......
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