Commit 15bb0100 authored by Tomaz  Canabrava's avatar Tomaz Canabrava Committed by Kurt Hindenburg
Browse files

Do not allow the user to click on apply for new profiles

For some reason the profile is being deleted when the user
clicks on "Ok" after clicking on "Apply" only for new profiles.
parent 3213a177
Pipeline #248951 failed with stage
in 5 minutes and 46 seconds
......@@ -339,11 +339,14 @@ void EditProfileDialog::updateCaption(const Profile::Ptr &profile)
if (group && group->profiles().count() > 1) {
QString caption = groupProfileNames(group, MAX_GROUP_CAPTION_LENGTH);
setWindowTitle(i18np("Editing profile: %2", "Editing %1 profiles: %2", group->profiles().count(), caption));
updateButtonApply();
} else {
if (_profileState == EditProfileDialog::NewProfile) {
setWindowTitle(i18n("Create New Profile"));
_buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
} else {
setWindowTitle(i18n("Edit Profile \"%1\"", profile->name()));
updateButtonApply();
}
}
}
......
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