summaryrefslogtreecommitdiff
path: root/src/modinfodialog.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-07-03 19:08:57 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-03 19:08:57 -0400
commit5a0b6a7cf65a9f3a88f05b5985ee134ee88b2b7f (patch)
tree54e6df8fdee667fd3402d00099cdada856bb09ab /src/modinfodialog.cpp
parentefec72a85a351f53880bffdba2438f6802d4f9ab (diff)
fixed tab order not being saved
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;