Commit 9566ed97 authored by Fabian Vogt's avatar Fabian Vogt Committed by Kurt Hindenburg
Browse files

Fix saving new profiles

When using the "Apply" button in the "Create new profile" dialog, the profile
was saved but the dialog remained in the "new profile" state. This meant that
when clicking on "Apply" again or accepting the dialog, it saved the profile
from scratch instead of editing the existing one. The ProfileManager
interpreted that as a rename because the "Name"/"UntranslatedName" properties
were set and decided to delete the profile at its "old" (== current) path.

BUG: 460383
parent b9577014
......@@ -211,6 +211,8 @@ void EditProfileDialog::save()
if (isNewProfile) {
// The profile exists now, no longer treat it as initial creation
_profileState = EditProfileDialog::ExistingProfile;
bool defaultChanged = _isDefault != _generalUi->setAsDefaultButton->isChecked();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment