really disable the active tool when hiding the annotating toolbar, thanks Bart for pointing that out

svn path=/trunk/playground/graphics/okular/; revision=617023
This commit is contained in:
Pino Toscano 2006-12-27 19:22:22 +00:00
parent 0594e78bdc
commit 8add3d7863

View file

@ -585,6 +585,8 @@ void PageViewAnnotator::setEnabled( bool on )
if ( m_toolBar )
m_toolBar->hideAndDestroy();
m_toolBar = 0;
// deactivate the active tool, if any
slotToolSelected( -1 );
return;
}