Commit d2949e63 authored by David Jarvie's avatar David Jarvie
Browse files

Show hamburger context menu at correct position on Wayland

parent 4f2a149b
...@@ -631,7 +631,7 @@ void MainWindow::initActions() ...@@ -631,7 +631,7 @@ void MainWindow::initActions()
*/ */
void MainWindow::slotInitHamburgerMenu() void MainWindow::slotInitHamburgerMenu()
{ {
QMenu* menu = new QMenu; QMenu* menu = new QMenu(this);
KActionCollection* actions = actionCollection(); KActionCollection* actions = actionCollection();
menu->addAction(actions->action(QStringLiteral("new"))); menu->addAction(actions->action(QStringLiteral("new")));
menu->addAction(actions->action(QStringLiteral("templates"))); menu->addAction(actions->action(QStringLiteral("templates")));
......
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