diff options
Diffstat (limited to 'kpdf/shell/shell.cpp')
-rw-r--r-- | kpdf/shell/shell.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kpdf/shell/shell.cpp b/kpdf/shell/shell.cpp index 40df86dc..dd2adf2e 100644 --- a/kpdf/shell/shell.cpp +++ b/kpdf/shell/shell.cpp @@ -105,7 +105,6 @@ void Shell::init() setupActions(); setupGUI(Keys | Save); - m_showToolBarAction = static_cast<TDEToggleAction*>(toolBarMenuAction()); readSettings(); if (!TDEGlobal::config()->hasGroup("MainWindow")) @@ -384,6 +383,10 @@ KParts::ReadOnlyPart* Shell::createTab() part->widget()->show(); m_manager->addPart(part, true); + if (!m_showToolBarAction) + { + m_showToolBarAction = static_cast<TDEToggleAction*>(toolBarMenuAction()); + } return part; } |