Fix parentless dialogs

svn path=/trunk/KDE/kdegraphics/okular/; revision=734688
This commit is contained in:
Craig Drummond 2007-11-09 16:16:05 +00:00
parent 7ea0bce44a
commit 4863ab4e2d
2 changed files with 2 additions and 2 deletions

View file

@ -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 );

View file

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