Skip to content

Commit 5f7358a

Browse files
committedApr 2, 2018
use QgsTemporaryCursorOverride
1 parent 85602c6 commit 5f7358a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/gui/layertree/qgslayertreeviewdefaultactions.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,8 @@ void QgsLayerTreeViewDefaultActions::zoomToSelection()
296296
{
297297
QAction *s = qobject_cast<QAction *>( sender() );
298298
QgsMapCanvas *canvas = reinterpret_cast<QgsMapCanvas *>( s->data().value<void *>() );
299-
QApplication::setOverrideCursor( Qt::WaitCursor );
299+
QgsTemporaryCursorOverride waitCursor( Qt::WaitCursor );
300300
zoomToSelection( canvas );
301-
QApplication::restoreOverrideCursor();
302301
}
303302

304303
void QgsLayerTreeViewDefaultActions::zoomToGroup()

0 commit comments

Comments
 (0)
Please sign in to comment.