diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-24 18:04:23 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-24 18:39:00 -0300 |
commit | 28a5859fe889b1c8a100296e09d352d962316e1a (patch) | |
tree | 0076bdaadaa71ce9b4868015d4737a9e378b0aaa | |
parent | 0939e5cb4139a873f4338a4a9d497e6b38181ca4 (diff) |
Settings: fix storage of screens in htoprc
-rw-r--r-- | Settings.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -361,6 +361,7 @@ static bool Settings_read(Settings* this, const char* fileName) { didReadMeters = true; } else if (strncmp(option[0], "screen:", 7) == 0) { Settings_newScreen(this, option[0] + 7, option[1]); + didReadFields = true; } else if (String_eq(option[0], ".tree_view")) { if (this->nScreens > 0) { this->screens[this->nScreens - 1]->treeView = atoi(option[1]); @@ -380,6 +381,7 @@ static bool Settings_read(Settings* this, const char* fileName) { if (this->nScreens == 0) { Settings_defaultScreens(this); if (legacyFieldsRead) { + didReadFields = true; free(this->screens[0]->fields); this->screens[0]->fields = legacyFields; this->screens[0]->flags = legacyFlags; |