Also save first if pressing the relaod button from the doc viewer header bar
This commit is contained in:
@@ -529,6 +529,8 @@ class GuiDocViewHeader(QWidget):
|
||||
def _refreshDocument(self):
|
||||
"""Reload the content of the document.
|
||||
"""
|
||||
if self.docViewer.theHandle == self.theParent.docEditor.theHandle:
|
||||
self.theParent.saveDocument()
|
||||
self.docViewer.reloadText()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user