BusyCursor: only restore cursor after all nested levels have exited

This commit is contained in:
Luke Campagnola 2020-07-13 12:53:59 -07:00
parent 6214ff6de8
commit ab5a2c5d11

View File

@ -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()