summaryrefslogtreecommitdiff
path: root/src/modinfodialogtextfiles.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-25 18:10:00 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-07-02 10:10:19 -0400
commitcb56bf76fd8036895bda468a5ad9ef707dbefce9 (patch)
treed0f253edc8ef3921163cf7e14a269422ce98dc62 /src/modinfodialogtextfiles.cpp
parentfc3ed80d0de220a1aa9d2b459785d47beea5861b (diff)
fixed text editors not clearing when switching mods
ported typo fixes that applied to the mod info dialog
Diffstat (limited to 'src/modinfodialogtextfiles.cpp')
-rw-r--r--src/modinfodialogtextfiles.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modinfodialogtextfiles.cpp b/src/modinfodialogtextfiles.cpp
index e3d00049..5b035c53 100644
--- a/src/modinfodialogtextfiles.cpp
+++ b/src/modinfodialogtextfiles.cpp
@@ -185,6 +185,7 @@ void GenericFilesTab::onSelection(
void GenericFilesTab::select(const QModelIndex& index)
{
if (!index.isValid()) {
+ m_editor->clear();
m_editor->setEnabled(false);
return;
}