Skip to content
Permalink
Browse files

Fix message box logic

  • Loading branch information
DelazJ committed Nov 20, 2017
1 parent ecde835 commit 06017b9242111e98ea461d57c12333c69f10a8ca
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/app/qgsmapthemes.cpp
@@ -163,10 +163,8 @@ void QgsMapThemes::removeCurrentPreset()
int res = QMessageBox::question( mMenu, tr( "Remove Theme" ),
trUtf8( "Are you sure you want to remove the existing theme “%1”?" ).arg( actionPreset->text() ),
QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
if ( res != QMessageBox::Yes )
return;
//remove the selected preset
QgsProject::instance()->mapThemeCollection()->removeMapTheme( actionPreset->text() );
if ( res == QMessageBox::Yes )
QgsProject::instance()->mapThemeCollection()->removeMapTheme( actionPreset->text() );
break;
}
}

0 comments on commit 06017b9

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