Commit 285b5a1d authored by Sebastian Sauer's avatar Sebastian Sauer
Browse files

Canvas can be NULL. bt: http://rafb.net/paste/results/oQUDgK21.html

Thanks again to Dmitry!


svn path=/trunk/koffice/; revision=601925
parent 882fe7e9
......@@ -32,11 +32,12 @@ KoTool::KoTool(KoCanvasBase *canvas )
, m_optionWidget( 0 )
, m_previousCursor(Qt::ArrowCursor)
{
connect( m_canvas->resourceProvider(),
if(m_canvas) { // canvas can be NULL e.g. see kofficeui/KoToolManager.cpp DummyTool():KoTool(0){}
connect( m_canvas->resourceProvider(),
SIGNAL( sigResourceChanged(const KoCanvasResource & res) ),
this,
SLOT( resourceChanged( const KoCanvasResource & res ) ) );
}
}
void KoTool::activate(bool temporary) {
......
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