summaryrefslogtreecommitdiff
path: root/src/modinfodialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modinfodialog.cpp')
-rw-r--r--src/modinfodialog.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp
index 16690019..47ac84be 100644
--- a/src/modinfodialog.cpp
+++ b/src/modinfodialog.cpp
@@ -353,7 +353,11 @@ void ModInfoDialog::setTabsVisibility(bool firstTime)
// save the current order (if necessary) because some tabs will be removed and
// others added
- saveTabOrder(Settings::instance());
+ if (!firstTime) {
+ // but don't do it the first time visibility is set because the tabs are
+ // in the default order, which will clobber the current settings
+ saveTabOrder(Settings::instance());
+ }
// remember selection, if any
auto sel = ModInfoTabIDs::None;