diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-12-21 02:15:02 +0100 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-12-21 02:15:02 +0100 |
| commit | a899823fff90728e6bd7d7b7ee8fb6d2f3be1568 (patch) | |
| tree | 5d0c03d6d6bf82f21a7a2a221fca4eee15dbaac1 /src | |
| parent | 3161bdb9a5b07ca73ab5c216920ddd420f5b4738 (diff) | |
Fixed Description not loading when InfoDialog opens on Nexus tab.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modinfodialog.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/modinfodialog.cpp b/src/modinfodialog.cpp index 416eca58..6d894237 100644 --- a/src/modinfodialog.cpp +++ b/src/modinfodialog.cpp @@ -115,7 +115,7 @@ ModInfoDialog::ModInfoDialog(ModInfo::Ptr modInfo, const DirectoryEntry *directo ui->commentsEdit->setText(modInfo->comments());
ui->notesEdit->setText(modInfo->notes());
- ui->descriptionView->setPage(new DescriptionPage);
+ ui->descriptionView->setPage(new DescriptionPage());
connect(&m_ThumbnailMapper, SIGNAL(mapped(const QString&)), this, SIGNAL(thumbnailClickedSignal(const QString&)));
connect(this, SIGNAL(thumbnailClickedSignal(const QString&)), this, SLOT(thumbnailClicked(const QString&)));
@@ -171,9 +171,7 @@ ModInfoDialog::ModInfoDialog(ModInfo::Ptr modInfo, const DirectoryEntry *directo ui->tabWidget->setTabEnabled(TAB_CONFLICTS, m_Origin != nullptr);
- if (ui->tabWidget->currentIndex() == TAB_NEXUS) {
- activateNexusTab();
- }
+
ui->endorseBtn->setEnabled((m_ModInfo->endorsedState() == ModInfo::ENDORSED_FALSE) ||
(m_ModInfo->endorsedState() == ModInfo::ENDORSED_NEVER));
@@ -185,6 +183,10 @@ ModInfoDialog::ModInfoDialog(ModInfo::Ptr modInfo, const DirectoryEntry *directo break;
}
}
+
+ if (ui->tabWidget->currentIndex() == TAB_NEXUS) {
+ activateNexusTab();
+ }
}
@@ -923,7 +925,7 @@ void ModInfoDialog::activateNexusTab() void ModInfoDialog::on_tabWidget_currentChanged(int index)
{
- if (m_RealTabPos[index] == TAB_NEXUS) {
+ if (index == TAB_NEXUS || m_RealTabPos[index] == TAB_NEXUS) {
activateNexusTab();
}
}
|
