Browse Source

Protect WaitDialog from garbage collector

master
Nils 4 years ago
parent
commit
7ebbfa4351
  1. 2
      qtgui/mainwindow.py

2
qtgui/mainwindow.py

@ -223,7 +223,7 @@ class MainWindow(QtWidgets.QMainWindow):
settings.remove("programDatabase")
logger.info("Asking api to getSystemPrograms while waiting")
WaitDialog(self, title, text, informativeText, api.buildSystemPrograms)
diag = WaitDialog(self, title, text, informativeText, api.buildSystemPrograms) #save in local var to keep alive
settings.setValue("programDatabase", api.getSystemPrograms())
self._updateGUIWithCachedPrograms()

Loading…
Cancel
Save