Commit a6bfc8bb authored by Pino Toscano's avatar Pino Toscano

be sure to toggle the drawing mode when exiting from presentation, if checked

svn path=/trunk/KDE/kdegraphics/okular/; revision=890518
parent 5d10ae58
......@@ -249,6 +249,10 @@ PresentationWidget::~PresentationWidget()
// remove this widget from document observer
m_document->removeObserver( this );
QAction *drawingAct = m_ac->action( "presentation_drawing_mode" );
disconnect( drawingAct, 0, this, 0 );
if ( drawingAct->isChecked() )
drawingAct->toggle();
m_document->removePageAnnotations( m_document->viewport().pageNumber, m_currentPageDrawings );
delete m_drawingEngine;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment