kpdf: fix SEGV described in issue #127.

The crash only happens when building in debug mode.
'm_showToolBarActionr' needs to be created after the 'kpdf_part' has
been created.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 8988b11a11)
r14.1.x
Michele Calgaro 8 months ago
parent 7735a26b44
commit ea2da03e9b
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

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

Loading…
Cancel
Save