Commit 76fb4102 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add parent to menu

parent 6bf4ccce
Pipeline #70582 failed with stage
in 4 minutes and 28 seconds
...@@ -1449,7 +1449,7 @@ void KMComposerWin::setupActions() ...@@ -1449,7 +1449,7 @@ void KMComposerWin::setupActions()
void KMComposerWin::updateHamburgerMenu() void KMComposerWin::updateHamburgerMenu()
{ {
QMenu *menu = new QMenu; QMenu *menu = new QMenu(this);
menu->addAction(actionCollection()->action(QStringLiteral("new_composer"))); menu->addAction(actionCollection()->action(QStringLiteral("new_composer")));
menu->addSeparator(); menu->addSeparator();
menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Undo)))); menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Undo))));
......
...@@ -101,7 +101,7 @@ KMMainWin::~KMMainWin() ...@@ -101,7 +101,7 @@ KMMainWin::~KMMainWin()
void KMMainWin::updateHamburgerMenu() void KMMainWin::updateHamburgerMenu()
{ {
QMenu *menu = new QMenu; QMenu *menu = new QMenu(this);
menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Open)))); menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Open))));
menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::SaveAs)))); menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::SaveAs))));
menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Print)))); menu->addAction(actionCollection()->action(QLatin1String(KStandardAction::name(KStandardAction::Print))));
......
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