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(); }