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:
parent
41fa2f64d3
commit
853256bd41
@ -296,8 +296,9 @@ class DockArea(Container, QtGui.QWidget, DockDrop):
|
|||||||
|
|
||||||
def apoptose(self):
|
def apoptose(self):
|
||||||
#print "apoptose area:", self.temporary, self.topContainer, self.topContainer.count()
|
#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
|
self.topContainer = None
|
||||||
|
if self.temporary:
|
||||||
self.home.removeTempArea(self)
|
self.home.removeTempArea(self)
|
||||||
#self.close()
|
#self.close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user