diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-25 17:44:41 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-02 10:10:19 -0400 |
| commit | fa20f81b46c3f8c89fcbbdff6e5da0225c707358 (patch) | |
| tree | d02df7f08ba1fdac3fb9d6b699621cfc69638944 /src/modinfodialogcategories.cpp | |
| parent | 65b3eb24fc5e3e1033d583a24cb51a19b0cfac2c (diff) | |
replaced reportError() calls by qCritical() because they can come from a thread, which hangs the ui
categories and notes will update the tab color when changing
fixed rare crash when reordering tabs while loading a mod
Diffstat (limited to 'src/modinfodialogcategories.cpp')
| -rw-r--r-- | src/modinfodialogcategories.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modinfodialogcategories.cpp b/src/modinfodialogcategories.cpp index 0d739d1f..8ffded59 100644 --- a/src/modinfodialogcategories.cpp +++ b/src/modinfodialogcategories.cpp @@ -34,7 +34,6 @@ void CategoriesTab::update() ui->categories->invisibleRootItem(), 0); updatePrimary(); - setHasData(ui->primaryCategories->count() > 0); } bool CategoriesTab::canHandleSeparators() const @@ -92,6 +91,8 @@ void CategoriesTab::updatePrimary() break; } } + + setHasData(ui->primaryCategories->count() > 0); } void CategoriesTab::addChecked(QTreeWidgetItem* tree) |
