mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +02:00
[ui] stop potential computations when app is about to exit
This commit is contained in:
parent
af53dd4ae7
commit
c1b80ff3e3
1 changed files with 3 additions and 0 deletions
|
@ -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_()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue