fix busy cursor nesting

Prevents permenent busy cursor
This commit is contained in:
Luke Campagnola 2018-04-25 13:04:26 -07:00
parent 80ff4ebfe6
commit d4a4fd7fd5

View File

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