summaryrefslogtreecommitdiff
path: root/src/modinfodialogtextfiles.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-24 07:28:02 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-02 10:10:18 -0400
commiteb8140afadc5aa4e6d1d2611f69dc6e38f469978 (patch)
tree8e5746ea4f06a23eb61062b587908ac6aaa8d8ec /src/modinfodialogtextfiles.cpp
parent949e451379d63fe4c6bff82a7a059c6792fbebb5 (diff)
grey out tab names when they have no data
remove tabs if they're can't handle the selected mod next/previous now load mods in place without reopening the dialog tab reordering is broken
Diffstat (limited to 'src/modinfodialogtextfiles.cpp')
-rw-r--r--src/modinfodialogtextfiles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modinfodialogtextfiles.cpp b/src/modinfodialogtextfiles.cpp
index fddfafba..bd175c24 100644
--- a/src/modinfodialogtextfiles.cpp
+++ b/src/modinfodialogtextfiles.cpp
@@ -42,6 +42,7 @@ void GenericFilesTab::clear()
{
m_list->clear();
select(nullptr);
+ setHasData(false);
}
bool GenericFilesTab::canClose()
@@ -76,6 +77,7 @@ bool GenericFilesTab::feedFile(const QString& rootPath, const QString& fullPath)
for (const auto* e : extensions) {
if (wantsFile(rootPath, fullPath)) {
m_list->addItem(new FileListItem(rootPath, fullPath));
+ setHasData(true);
return true;
}
}