Skip to content
Permalink
Browse files

use QgsTemporaryCursorOverride

  • Loading branch information
slarosa committed Apr 2, 2018
1 parent 85602c6 commit 5f7358ad65fa6f23dab3a6131376176f0f043cd0
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/gui/layertree/qgslayertreeviewdefaultactions.cpp
@@ -296,9 +296,8 @@ void QgsLayerTreeViewDefaultActions::zoomToSelection()
{
QAction *s = qobject_cast<QAction *>( sender() );
QgsMapCanvas *canvas = reinterpret_cast<QgsMapCanvas *>( s->data().value<void *>() );
QApplication::setOverrideCursor( Qt::WaitCursor );
QgsTemporaryCursorOverride waitCursor( Qt::WaitCursor );
zoomToSelection( canvas );
QApplication::restoreOverrideCursor();
}

void QgsLayerTreeViewDefaultActions::zoomToGroup()

0 comments on commit 5f7358a

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