mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
okular: remove the TOC observer before closing the document
fixes crash in case the part is embeded and the parent is closed Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
17efba129e
commit
ca5dc4efc0
1 changed files with 1 additions and 0 deletions
|
@ -803,6 +803,7 @@ Part::~Part()
|
|||
{
|
||||
GuiUtils::removeIconLoader( iconLoader() );
|
||||
m_document->removeObserver( this );
|
||||
m_document->removeObserver( m_toc );
|
||||
|
||||
if ( m_document->isOpened() )
|
||||
Part::closeUrl( false );
|
||||
|
|
Loading…
Add table
Reference in a new issue