From: David Faure Date: Mon, 8 Feb 2010 14:27:58 +0000 (+0000) Subject: Separate the parent object (for the knewfilemenu instance) and the parent widget X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0837da2d42f0726b70288aa7df4c6f575b2d1865 Separate the parent object (for the knewfilemenu instance) and the parent widget (for dialogs it might pop up) so that we can use a non-widget parent. BUG: 218743 svn path=/trunk/KDE/kdebase/apps/; revision=1087087 --- diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index e005ac29c..e5151c0fb 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -156,7 +156,8 @@ void DolphinPart::createActions() { // Edit menu - m_newMenu = new KNewFileMenu(actionCollection(), "new_menu", widget()); + m_newMenu = new KNewFileMenu(actionCollection(), "new_menu", this); + m_newMenu->setParentWidget(widget()); DolphinNewMenuObserver::instance().attach(m_newMenu); connect(m_newMenu->menu(), SIGNAL(aboutToShow()), this, SLOT(updateNewMenu()));