diff options
| author | David Faure <[email protected]> | 2010-02-08 14:27:58 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2010-02-08 14:27:58 +0000 |
| commit | 0837da2d42f0726b70288aa7df4c6f575b2d1865 (patch) | |
| tree | b84828e2ee03dd1a888d9ba6a9c9d4f51f575787 | |
| parent | 29bff3b1f007a0df1715a51505a1119f95313cab (diff) | |
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
| -rw-r--r-- | src/dolphinpart.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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())); |
