From 4863ab4e2d0b60fa5e2860326f0432e6b66dd32a Mon Sep 17 00:00:00 2001 From: Craig Drummond Date: Fri, 9 Nov 2007 16:16:05 +0000 Subject: [PATCH] Fix parentless dialogs svn path=/trunk/KDE/kdegraphics/okular/; revision=734688 --- part.cpp | 2 +- shell/shell.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/part.cpp b/part.cpp index ab9ba14ca..e2d02cdb6 100644 --- a/part.cpp +++ b/part.cpp @@ -1211,7 +1211,7 @@ void Part::slotSaveFileAs() void Part::slotGetNewStuff() { - KNS::Engine engine; + KNS::Engine engine(widget()); engine.init( "okular.knsrc" ); // show the modal dialog over pageview and execute it KNS::Entry::List entries = engine.downloadDialogModal( m_pageView ); diff --git a/shell/shell.cpp b/shell/shell.cpp index 3170c67a7..6b3ce2933 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -259,7 +259,7 @@ void Shell::fileOpen() void Shell::optionsConfigureToolbars() { - KEditToolBar dlg(factory()); + KEditToolBar dlg(factory(), this); connect(&dlg, SIGNAL(newToolBarConfig()), this, SLOT(applyNewToolbarConfig())); dlg.exec(); }