From 39a4ea309de8a8ef952ae92c83f03cc578d95308 Mon Sep 17 00:00:00 2001 From: isaac Date: Tue, 14 Apr 2020 00:15:22 -0600 Subject: [PATCH] Memory leak fixed, dialogs properly delete themselves when closed... --- gui/cursorhotspotedit.py | 4 ---- gui/cursorpreviewdialog.py | 1 - 2 files changed, 5 deletions(-) diff --git a/gui/cursorhotspotedit.py b/gui/cursorhotspotedit.py index dd81d9b..07ff046 100644 --- a/gui/cursorhotspotedit.py +++ b/gui/cursorhotspotedit.py @@ -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...") - diff --git a/gui/cursorpreviewdialog.py b/gui/cursorpreviewdialog.py index 6fb17e0..d24e2d1 100644 --- a/gui/cursorpreviewdialog.py +++ b/gui/cursorpreviewdialog.py @@ -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()