From 54336c28414c693dde23b7eb329b6633b898fd0e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 15 Dec 2010 13:56:50 -0700 Subject: [PATCH] ... --- src/calibre/gui2/add.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/gui2/add.py b/src/calibre/gui2/add.py index 601c620e9c..026fabea07 100644 --- a/src/calibre/gui2/add.py +++ b/src/calibre/gui2/add.py @@ -369,8 +369,13 @@ class Adder(QObject): # {{{ except: pass self._parent = None + self.pd.setParent(None) + del self.pd + self.pd = None if hasattr(self, 'db_adder'): self.db_adder.setParent(None) + del self.db_adder + self.db_adder = None @property