Skip to content

Commit

Permalink
use QgsTemporaryCursorOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Apr 2, 2018
1 parent 85602c6 commit 5f7358a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/layertree/qgslayertreeviewdefaultactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5f7358a

Please sign in to comment.