Skip to content
Permalink
Browse files

Don't try to connect to null action (removes a warning)

  • Loading branch information
m-kuhn committed Mar 17, 2015
1 parent db23632 commit d68422d140147afbe847dd0d467cdf074f282249
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsmaptool.cpp
@@ -105,7 +105,8 @@ void QgsMapTool::setAction( QAction* action )
if ( mAction )
disconnect( mAction, SIGNAL( destroyed() ), this, SLOT( actionDestroyed() ) );
mAction = action;
connect( mAction, SIGNAL( destroyed() ), this, SLOT( actionDestroyed() ) );
if ( mAction )
connect( mAction, SIGNAL( destroyed() ), this, SLOT( actionDestroyed() ) );
}

void QgsMapTool::actionDestroyed()

0 comments on commit d68422d

Please sign in to comment.
You can’t perform that action at this time.