mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
The save flag will try to load the state of the mainwindow when setupGUI is called. We always
need to call to createGUI before that (if no Create flag is passed to setupGUI, that isn't in this case). CCMAIL: pino@kde.org svn path=/trunk/KDE/kdegraphics/okular/; revision=853433
This commit is contained in:
parent
7f4d879f77
commit
3bf585defb
|
@ -76,8 +76,8 @@ void Shell::init()
|
|||
// tell the KParts::MainWindow that this is indeed the main widget
|
||||
setCentralWidget(m_part->widget());
|
||||
// and integrate the part's GUI with the shell's
|
||||
setupGUI(Keys | Save);
|
||||
createGUI(m_part);
|
||||
setupGUI(Keys | Save);
|
||||
m_showToolBarAction = static_cast<KToggleAction*>(toolBarMenuAction());
|
||||
m_doc = qobject_cast<KDocumentViewer*>(m_part);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue