Skip to content

Commit

Permalink
✨ Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienRoger committed Feb 16, 2022
1 parent 2532e7f commit 84bb7f8
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions pyflow/graphics/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 84bb7f8

Please sign in to comment.