From b562b8c6dc1ef7188b88e868cbd3d780c4352aea Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 27 Mar 2014 13:58:30 +0900 Subject: [PATCH] Revert "fix some memory leaks" This reverts commit b9ba2375a1f13aab90fdc22c3507404c4b691bf3. testing assumption that this is causing the windows crashes --- aqt/addcards.py | 1 - aqt/browser.py | 1 - aqt/editcurrent.py | 1 - aqt/stats.py | 1 - 4 files changed, 4 deletions(-) diff --git a/aqt/addcards.py b/aqt/addcards.py index dd1de4d43..3dcf46184 100644 --- a/aqt/addcards.py +++ b/aqt/addcards.py @@ -190,7 +190,6 @@ question on all cards."""), help="AddItems") saveGeom(self, "add") aqt.dialogs.close("AddCards") QDialog.reject(self) - self.deleteLater() def canClose(self): if (self.forceClose or self.editor.fieldsAreBlank() or diff --git a/aqt/browser.py b/aqt/browser.py index 8ad8de788..28ca2445b 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -466,7 +466,6 @@ class Browser(QMainWindow): self.teardownHooks() self.mw.maybeReset() evt.accept() - self.deleteLater() def canClose(self): return True diff --git a/aqt/editcurrent.py b/aqt/editcurrent.py index cb8d69067..c029fc36e 100644 --- a/aqt/editcurrent.py +++ b/aqt/editcurrent.py @@ -64,7 +64,6 @@ class EditCurrent(QDialog): self.mw.moveToState("review") saveGeom(self, "editcurrent") aqt.dialogs.close("EditCurrent") - self.deleteLater() def canClose(self): return True diff --git a/aqt/stats.py b/aqt/stats.py index b7c6e0c54..93bf6601a 100644 --- a/aqt/stats.py +++ b/aqt/stats.py @@ -45,7 +45,6 @@ class DeckStats(QDialog): def reject(self): saveGeom(self, self.name) QDialog.reject(self) - self.deleteLater() def browser(self): name = time.strftime("-%Y-%m-%d@%H-%M-%S.png",