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):
|
def _refreshDocument(self):
|
||||||
"""Reload the content of the document.
|
"""Reload the content of the document.
|
||||||
"""
|
"""
|
||||||
|
if self.docViewer.theHandle == self.theParent.docEditor.theHandle:
|
||||||
|
self.theParent.saveDocument()
|
||||||
self.docViewer.reloadText()
|
self.docViewer.reloadText()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user