Minor changes to imort document feature
This commit is contained in:
@@ -338,9 +338,11 @@ class GuiDocEditor(QTextEdit):
|
|||||||
) % (docSize/1.0e6, nwConst.maxDocSize/1.0e6), nwAlert.ERROR)
|
) % (docSize/1.0e6, nwConst.maxDocSize/1.0e6), nwAlert.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
qApp.setOverrideCursor(QCursor(Qt.WaitCursor))
|
||||||
self.setPlainText(theText)
|
self.setPlainText(theText)
|
||||||
self.setDocumentChanged(True)
|
self.setDocumentChanged(True)
|
||||||
self.updateDocMargins()
|
self.updateDocMargins()
|
||||||
|
qApp.restoreOverrideCursor()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
@@ -558,6 +558,7 @@ class GuiMain(QMainWindow):
|
|||||||
extFilter = [
|
extFilter = [
|
||||||
"Text files (*.txt)",
|
"Text files (*.txt)",
|
||||||
"Markdown files (*.md)",
|
"Markdown files (*.md)",
|
||||||
|
"novelWriter files (*.nwd)",
|
||||||
"All files (*.*)",
|
"All files (*.*)",
|
||||||
]
|
]
|
||||||
dlgOpt = QFileDialog.Options()
|
dlgOpt = QFileDialog.Options()
|
||||||
|
|||||||
Reference in New Issue
Block a user