Fixed bug where removeTempArea would be called on home even if it was not defined (#1349)
* Fixed bug where removeTempArea would be called on home even if it was not defined * Made the check for whether or not home is defined more explicit
This commit is contained in:
parent
9413dc8005
commit
e7b11cb39a
@ -319,7 +319,7 @@ class DockArea(Container, QtGui.QWidget, DockDrop):
|
||||
#print "apoptose area:", self.temporary, self.topContainer, self.topContainer.count()
|
||||
if self.topContainer is None or self.topContainer.count() == 0:
|
||||
self.topContainer = None
|
||||
if self.temporary:
|
||||
if self.temporary and self.home is not None:
|
||||
self.home.removeTempArea(self)
|
||||
#self.close()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user