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:
Mitchel Paulin 2020-10-14 13:07:12 -04:00 committed by GitHub
parent 9413dc8005
commit e7b11cb39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()