fix busy cursor nesting
Prevents permenent busy cursor
This commit is contained in:
parent
80ff4ebfe6
commit
d4a4fd7fd5
@ -18,7 +18,7 @@ class BusyCursor(object):
|
|||||||
BusyCursor.active.append(self)
|
BusyCursor.active.append(self)
|
||||||
|
|
||||||
def __exit__(self, *args):
|
def __exit__(self, *args):
|
||||||
BusyCursor.active.pop(-1)
|
if self._active:
|
||||||
if len(BusyCursor.active) == 0:
|
BusyCursor.active.pop(-1)
|
||||||
QtGui.QApplication.restoreOverrideCursor()
|
QtGui.QApplication.restoreOverrideCursor()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user