From 84bb7f8b146c31e09a3509454c00cc46172af90e Mon Sep 17 00:00:00 2001 From: Fabien Roger Date: Wed, 16 Feb 2022 17:38:56 +0100 Subject: [PATCH] :sparkles: Remove unused function --- pyflow/graphics/window.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/pyflow/graphics/window.py b/pyflow/graphics/window.py index b3181d24..b501a505 100644 --- a/pyflow/graphics/window.py +++ b/pyflow/graphics/window.py @@ -500,31 +500,6 @@ def closeWindow(self, event: QCloseEvent): self.writeSettings() event.accept() - # def maybeSave(self) -> bool: - # """Ask for save and returns if the file should be closed. - - # Returns: - # True if the file should be closed, False otherwise. - - # """ - # if not self.isModified(): - # return True - - # answer = QMessageBox.warning( - # self, - # "About to loose you work?", - # "The file has been modified.\n" "Do you want to save your changes?", - # QMessageBox.StandardButton.Save - # | QMessageBox.StandardButton.Discard - # | QMessageBox.StandardButton.Cancel, - # ) - - # if answer == QMessageBox.StandardButton.Save: - # return self.onFileSave() - # if answer == QMessageBox.StandardButton.Discard: - # return True - # return False - def activeMdiChild(self) -> Widget: """Get the active Widget if existing.""" activeSubWindow = self.mdiArea.activeSubWindow()