summaryrefslogtreecommitdiff
path: root/src/modinfodialogtextfiles.cpp
diff options
context:
space:
mode:
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;
}