BusyCursor: only restore cursor after all nested levels have exited
This commit is contained in:
parent
6214ff6de8
commit
ab5a2c5d11
@ -31,4 +31,5 @@ class BusyCursor(object):
|
||||
def __exit__(self, *args):
|
||||
if self._active:
|
||||
BusyCursor.active.pop(-1)
|
||||
QtGui.QApplication.restoreOverrideCursor()
|
||||
if len(BusyCursor.active) == 0:
|
||||
QtGui.QApplication.restoreOverrideCursor()
|
||||
|
Loading…
Reference in New Issue
Block a user