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:
Rafael Fernández López 2008-08-27 18:05:57 +00:00
parent 7f4d879f77
commit 3bf585defb

View file

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