Skip to content

Commit

Permalink
Memory leak fixed, dialogs properly delete themselves when closed...
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacrobinson2000 committed Apr 14, 2020
1 parent 4299d8d commit 39a4ea3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions gui/cursorhotspotedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,3 @@ def closeEvent(self, evt: QtGui.QCloseEvent):
def current_cursor(self) -> AnimatedCursor:
return self._cursor


def __del__(self):
print("Deleting Hotspot Dialog...")

1 change: 0 additions & 1 deletion gui/cursorpreviewdialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def __init__(self, parent=None, cursor: AnimatedCursor=None):
self.setAttribute(QtCore.Qt.WA_DeleteOnClose, True)

def closeEvent(self, evt: QtGui.QCloseEvent):
print("Closed!")
super().closeEvent(evt)
self.accept()

Expand Down

0 comments on commit 39a4ea3

Please sign in to comment.