DockArea apoptose fix.

Fixes problem where docks can't be added to a non-temporary area once all of its docks have been closed.
This commit is contained in:
Daniel Lidstrom 2014-12-23 16:46:15 -07:00
parent 41fa2f64d3
commit 853256bd41

View File

@ -296,8 +296,9 @@ class DockArea(Container, QtGui.QWidget, DockDrop):
def apoptose(self):
#print "apoptose area:", self.temporary, self.topContainer, self.topContainer.count()
if self.temporary and self.topContainer.count() == 0:
if self.topContainer.count() == 0:
self.topContainer = None
if self.temporary:
self.home.removeTempArea(self)
#self.close()