Skip to content

Commit

Permalink
Disable deleting active profile
Browse files Browse the repository at this point in the history
  • Loading branch information
JuhoErvasti committed Sep 17, 2024
1 parent 5eb0a50 commit ef9c742
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/options/qgsuserprofileselectiondialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@ void QgsUserProfileSelectionDialog::onRemoveProfile()

if ( selectedProfile == QStringLiteral( "default" ) )
{
QMessageBox::warning( this, tr( "Remove profile" ), QString( "Cannot delete default profile" ), QMessageBox::Ok );
QMessageBox::warning( this, tr( "Remove profile" ), QString( "Cannot delete default profile!" ), QMessageBox::Ok );
return;
}

if ( selectedProfile == mActiveProfile )
{
QMessageBox::warning( this, tr( "Remove profile" ), QString( "Cannot delete active profile!" ), QMessageBox::Ok );
return;
}

Expand Down

0 comments on commit ef9c742

Please sign in to comment.