diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-25 18:10:00 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-02 10:10:19 -0400 |
| commit | cb56bf76fd8036895bda468a5ad9ef707dbefce9 (patch) | |
| tree | d0f253edc8ef3921163cf7e14a269422ce98dc62 /src/texteditor.cpp | |
| parent | fc3ed80d0de220a1aa9d2b459785d47beea5861b (diff) | |
fixed text editors not clearing when switching mods
ported typo fixes that applied to the mod info dialog
Diffstat (limited to 'src/texteditor.cpp')
| -rw-r--r-- | src/texteditor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/texteditor.cpp b/src/texteditor.cpp index 6c1685da..ee36c104 100644 --- a/src/texteditor.cpp +++ b/src/texteditor.cpp @@ -57,6 +57,14 @@ void TextEditor::setDefaultStyle() setHighlightBackgroundColor(backgroundColor); } +void TextEditor::clear() +{ + m_filename.clear(); + m_encoding.clear(); + setPlainText(""); + dirty(false); +} + bool TextEditor::load(const QString& filename) { m_filename = filename; |
