From 0837da2d42f0726b70288aa7df4c6f575b2d1865 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 8 Feb 2010 14:27:58 +0000 Subject: [PATCH] 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 --- src/dolphinpart.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())); -- 2.47.3