Remove unused code and reuse a few lines in split/merge tools

This commit is contained in:
Veronica K. B. Olsen
2020-09-24 23:30:59 +02:00
parent ad50ef6e8c
commit 008117fece
3 changed files with 2 additions and 30 deletions
+1 -2
View File
@@ -214,14 +214,13 @@ class GuiDocSplit(QDialog):
theDoc.clearDocument()
self.theParent.treeView.revealTreeItem(nHandle)
self.close()
self._doClose()
return
def _doClose(self):
"""Close the dialog window without doing anything.
"""
logger.verbose("GuiDocSplit close button clicked")
self.optState.saveSettings()
self.close()
return