Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
replace more override identifiers
  • Loading branch information
jef-n committed Jan 17, 2015
1 parent fdd1751 commit c26cfe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/qgssublayersdialog.cpp
Expand Up @@ -153,14 +153,14 @@ int QgsSublayersDialog::exec()
// if we got here, disable override cursor, open dialog and return result
// TODO add override cursor where it is missing (e.g. when opening via "Add Raster")
QCursor cursor;
bool override = ( QApplication::overrideCursor() != 0 );
if ( override )
bool overrideCursor = ( QApplication::overrideCursor() != 0 );
if ( overrideCursor )
{
cursor = QCursor( * QApplication::overrideCursor() );
QApplication::restoreOverrideCursor();
}
int ret = QDialog::exec();
if ( override )
if ( overrideCursor )
QApplication::setOverrideCursor( cursor );
return ret;
}

0 comments on commit c26cfe2

Please sign in to comment.