Commit 9a4844d5 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

parent c5453aaf
......@@ -751,7 +751,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) {
......@@ -764,7 +768,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);
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