diff --git a/src/createinstancedialogpages.cpp b/src/createinstancedialogpages.cpp index 1a5b24705..27bd40625 100644 --- a/src/createinstancedialogpages.cpp +++ b/src/createinstancedialogpages.cpp @@ -937,9 +937,7 @@ bool NamePage::checkName(QString parentDir, QString name) return okay; } -ProfilePage::ProfilePage(CreateInstanceDialog& dlg) - : Page(dlg) -{} +ProfilePage::ProfilePage(CreateInstanceDialog& dlg) : Page(dlg) {} bool ProfilePage::ready() const { diff --git a/src/createinstancedialogpages.h b/src/createinstancedialogpages.h index 25945a2a3..ce5256354 100644 --- a/src/createinstancedialogpages.h +++ b/src/createinstancedialogpages.h @@ -561,7 +561,6 @@ class PathsPage : public Page void setIfEmpty(QLineEdit* e, const QString& path, bool force); }; - // default settings for profiles page; allow the user to set their preferred // defaults for the profile options // @@ -575,12 +574,8 @@ class ProfilePage : public Page bool ready() const override; CreateInstanceDialog::ProfileSettings profileSettings() const override; - -protected: - }; - // nexus connection page; this reuses the ui found in the settings dialog and // is skipped if there's already an api key in the credentials manager // diff --git a/src/profile.cpp b/src/profile.cpp index 13ce41c7e..d4299a7b0 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -177,8 +177,7 @@ void Profile::findProfileSettings() } } - if (setting("", "LocalSettings") == - QVariant()) { + if (setting("", "LocalSettings") == QVariant()) { QString backupFile = getIniFileName() + "_"; if (m_Directory.exists(backupFile)) { storeSetting("", "LocalSettings", true); diff --git a/src/settingsdialoggeneral.cpp b/src/settingsdialoggeneral.cpp index 91fe6687e..7acaa190b 100644 --- a/src/settingsdialoggeneral.cpp +++ b/src/settingsdialoggeneral.cpp @@ -72,7 +72,8 @@ void GeneralSettingsTab::update() // profile defaults settings().setProfileLocalInis(ui->localINIs->isChecked()); settings().setProfileLocalSaves(ui->localSaves->isChecked()); - settings().setProfileArchiveInvalidation(ui->automaticArchiveInvalidation->isChecked()); + settings().setProfileArchiveInvalidation( + ui->automaticArchiveInvalidation->isChecked()); // miscellaneous settings().geometry().setCenterDialogs(ui->centerDialogs->isChecked());