Commit e694358a authored by Carlos Alves's avatar Carlos Alves Committed by Kurt Hindenburg
Browse files

For "Manage Profiles" always open the "Profiles" page in settings

If the user selected another settings page, "Manage Profiles..." would
open that page instead of "Profiles".

BUG: 428206
FIXED-IN: 20.08.3


(cherry picked from commit 9a4844d5)
parent 532b7b96
......@@ -747,7 +747,11 @@ void MainWindow::showManageProfilesDialog()
void MainWindow::showSettingsDialog(const bool showProfilePage)
static ConfigurationDialog *confDialog = nullptr;
static KPageWidgetItem *profilePage = nullptr;
if (confDialog != nullptr) {
if (showProfilePage && profilePage != nullptr) {
......@@ -760,7 +764,7 @@ void MainWindow::showSettingsDialog(const bool showProfilePage)
confDialog->addPage(generalPage, true);
const QString profilePageName = i18nc("@title Preferences page name", "Profiles");
auto profilePage = new KPageWidgetItem(new ProfileSettings(confDialog), profilePageName);
profilePage = new KPageWidgetItem(new ProfileSettings(confDialog), profilePageName);
confDialog->addPage(profilePage, true);
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