Fix handling of cursor override

This commit is contained in:
Nyall Dawson 2020-04-14 15:14:51 +10:00
parent 0558d64198
commit 190907b831

View File

@ -66,9 +66,8 @@ void QgsMessageViewer::showMessage( bool blocking )
{ {
if ( blocking ) if ( blocking )
{ {
QApplication::setOverrideCursor( Qt::ArrowCursor ); QgsTemporaryCursorRestoreOverride override;
exec(); exec();
QApplication::restoreOverrideCursor();
} }
else else
{ {