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):
|
||||||
|
if self._active:
|
||||||
BusyCursor.active.pop(-1)
|
BusyCursor.active.pop(-1)
|
||||||
if len(BusyCursor.active) == 0:
|
|
||||||
QtGui.QApplication.restoreOverrideCursor()
|
QtGui.QApplication.restoreOverrideCursor()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user