summaryrefslogtreecommitdiff
path: root/src/modinfodialogtextfiles.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-25 17:44:41 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-02 10:10:19 -0400
commitfa20f81b46c3f8c89fcbbdff6e5da0225c707358 (patch)
treed02df7f08ba1fdac3fb9d6b699621cfc69638944 /src/modinfodialogtextfiles.cpp
parent65b3eb24fc5e3e1033d583a24cb51a19b0cfac2c (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/modinfodialogtextfiles.cpp')
-rw-r--r--src/modinfodialogtextfiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modinfodialogtextfiles.cpp b/src/modinfodialogtextfiles.cpp
index 2b5ab489..e3d00049 100644
--- a/src/modinfodialogtextfiles.cpp
+++ b/src/modinfodialogtextfiles.cpp
@@ -158,7 +158,6 @@ bool GenericFilesTab::feedFile(const QString& rootPath, const QString& fullPath)
for (const auto* e : extensions) {
if (wantsFile(rootPath, fullPath)) {
m_model->add(rootPath, fullPath);
- setHasData(true);
return true;
}
}
@@ -169,6 +168,7 @@ bool GenericFilesTab::feedFile(const QString& rootPath, const QString& fullPath)
void GenericFilesTab::update()
{
m_model->finished();
+ setHasData(m_model->rowCount() > 0);
}
void GenericFilesTab::onSelection(