mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
Fix parentless dialogs
svn path=/trunk/KDE/kdegraphics/okular/; revision=734688
This commit is contained in:
parent
7ea0bce44a
commit
4863ab4e2d
2
part.cpp
2
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 );
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue