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)
def __exit__(self, *args):
BusyCursor.active.pop(-1)
if len(BusyCursor.active) == 0:
if self._active:
BusyCursor.active.pop(-1)
QtGui.QApplication.restoreOverrideCursor()