summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Settings.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Settings.c b/Settings.c
index f9a58e37..e2c94e2b 100644
--- a/Settings.c
+++ b/Settings.c
@@ -838,8 +838,8 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicMeters, H
#endif
this->changed = false;
this->delay = DEFAULT_DELAY;
- bool ok = false;
- if (legacyDotfile) {
+ bool ok = Settings_read(this, this->filename, initialCpuCount);
+ if (!ok && legacyDotfile) {
ok = Settings_read(this, legacyDotfile, initialCpuCount);
if (ok) {
// Transition to new location and delete old configuration file
@@ -850,9 +850,6 @@ Settings* Settings_new(unsigned int initialCpuCount, Hashtable* dynamicMeters, H
free(legacyDotfile);
}
if (!ok) {
- ok = Settings_read(this, this->filename, initialCpuCount);
- }
- if (!ok) {
this->screenTabs = true;
this->changed = true;
ok = Settings_read(this, SYSCONFDIR "/htoprc", initialCpuCount);