From 8e5664c9ae866c65919def57f95dade2e86ca651 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 7 Oct 2020 19:26:38 +0200 Subject: [PATCH] Minor changes to imort document feature --- nw/gui/doceditor.py | 2 ++ nw/guimain.py | 1 + 2 files changed, 3 insertions(+) diff --git a/nw/gui/doceditor.py b/nw/gui/doceditor.py index 7e83461a..afb704c7 100644 --- a/nw/gui/doceditor.py +++ b/nw/gui/doceditor.py @@ -338,9 +338,11 @@ class GuiDocEditor(QTextEdit): ) % (docSize/1.0e6, nwConst.maxDocSize/1.0e6), nwAlert.ERROR) return False + qApp.setOverrideCursor(QCursor(Qt.WaitCursor)) self.setPlainText(theText) self.setDocumentChanged(True) self.updateDocMargins() + qApp.restoreOverrideCursor() return True diff --git a/nw/guimain.py b/nw/guimain.py index 076eccf0..a741af88 100644 --- a/nw/guimain.py +++ b/nw/guimain.py @@ -558,6 +558,7 @@ class GuiMain(QMainWindow): extFilter = [ "Text files (*.txt)", "Markdown files (*.md)", + "novelWriter files (*.nwd)", "All files (*.*)", ] dlgOpt = QFileDialog.Options()