We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecde835 commit 06017b9Copy full SHA for 06017b9
src/app/qgsmapthemes.cpp
@@ -163,10 +163,8 @@ void QgsMapThemes::removeCurrentPreset()
163
int res = QMessageBox::question( mMenu, tr( "Remove Theme" ),
164
trUtf8( "Are you sure you want to remove the existing theme “%1”?" ).arg( actionPreset->text() ),
165
QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
166
- if ( res != QMessageBox::Yes )
167
- return;
168
- //remove the selected preset
169
- QgsProject::instance()->mapThemeCollection()->removeMapTheme( actionPreset->text() );
+ if ( res == QMessageBox::Yes )
+ QgsProject::instance()->mapThemeCollection()->removeMapTheme( actionPreset->text() );
170
break;
171
}
172
0 commit comments