diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-31 17:28:59 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-31 17:28:59 -0400 |
| commit | d2eb890f2b9df13c402db6adeaafa7e3f4a7d736 (patch) | |
| tree | 371f52175eaa83db0b3b354b95d382bd7080ca38 | |
| parent | fa7e34e84a09ed7a2f453a35a48e71477c841e5b (diff) | |
refresh files in the constructor because the ui is used to determine the tab states
| -rw-r--r-- | src/modinfodialog.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp index 60cf7578..5d2dd811 100644 --- a/src/modinfodialog.cpp +++ b/src/modinfodialog.cpp @@ -399,6 +399,12 @@ ModInfoDialog::ModInfoDialog(ModInfo::Ptr modInfo, const DirectoryEntry *directo } } + // refresh everything but the conflict lists, which are done in exec() because + // they depend on restoring the state to some widgets; this refresh has to be + // done here because some of the checks below depend on the ui to decide which + // tabs to enable + refreshFiles(); + if (modInfo->hasFlag(ModInfo::FLAG_SEPARATOR)) { ui->tabWidget->setTabEnabled(TAB_TEXTFILES, false); @@ -503,7 +509,8 @@ ModInfoDialog::~ModInfoDialog() int ModInfoDialog::exec() { - refreshLists(); + // no need to refresh the other stuff, that was done in the constructor + refreshConflictLists(true, true); return TutorableDialog::exec(); } |
