[ui] stop potential computations when app is about to exit

This commit is contained in:
Yann Lanthony 2017-10-13 18:02:39 +02:00
parent af53dd4ae7
commit c1b80ff3e3

View file

@ -23,6 +23,9 @@ if __name__ == "__main__":
r = Reconstruction()
engine.rootContext().setContextProperty("_reconstruction", r)
# Request any potential computation to stop on exit
app.aboutToQuit.connect(r.stopExecution)
engine.load(os.path.normpath(url))
app.exec_()