Commit 6b878d16 authored by Francesco Cecconi's avatar Francesco Cecconi
Browse files

Fix issue where new profiles are not saved correctly

Due to new code untranslatedName, the saving of the profile was not
correct.  This patch fixes that.

BUG: 303354
REVIEW: 105648
FIXED-IN: 4.9.0
parent 32af61fb
......@@ -374,6 +374,7 @@ void EditProfileDialog::profileNameChanged(const QString& text)
updateTempProfileProperty(Profile::Name, text);
updateTempProfileProperty(Profile::UntranslatedName, text);
void EditProfileDialog::startInSameDir(bool sameDir)
......@@ -128,6 +128,7 @@ void ManageProfilesDialog::itemDataChanged(QStandardItem* item)
if (newName != oldName) {
QHash<Profile::Property, QVariant> properties;
properties.insert(Profile::Name, newName);
properties.insert(Profile::UntranslatedName, newName);
ProfileManager::instance()->changeProfile(profile, properties);
......@@ -327,6 +328,7 @@ void ManageProfilesDialog::createProfile()
Profile::Ptr newProfile = Profile::Ptr(new Profile(ProfileManager::instance()->fallbackProfile()));
newProfile->clone(sourceProfile, true);
newProfile->setProperty(Profile::Name, i18nc("@item This will be used as part of the file name", "New Profile"));
newProfile->setProperty(Profile::UntranslatedName, "New Profile");
newProfile->setProperty(Profile::MenuIndex, QString("0"));
QWeakPointer<EditProfileDialog> dialog = new EditProfileDialog(this);
Markdown is supported
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