Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Silarn committed Sep 13, 2023
1 parent 3a006e5 commit 94bfe30
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
4 changes: 1 addition & 3 deletions src/createinstancedialogpages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
5 changes: 0 additions & 5 deletions src/createinstancedialogpages.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand All @@ -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
//
Expand Down
3 changes: 1 addition & 2 deletions src/profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/settingsdialoggeneral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 94bfe30

Please sign in to comment.