mirror of https://github.com/vitalif/openscad
Added some fixme's related to quitting while doing a long calculation. It sometimes causes a crash atm.
parent
0e4e8b64a7
commit
7f4cfc5ada
|
@ -462,6 +462,7 @@ void MainWindow::report_func(const class AbstractNode*, void *vp, int mark)
|
|||
QApplication::processEvents();
|
||||
}
|
||||
|
||||
// FIXME: Check if cancel was requested by e.g. Application quit
|
||||
if (thisp->progresswidget->wasCanceled()) throw ProgressCancelException();
|
||||
}
|
||||
|
||||
|
@ -1847,6 +1848,7 @@ void MainWindow::quit()
|
|||
QCloseEvent ev;
|
||||
QApplication::sendEvent(QApplication::instance(), &ev);
|
||||
if (ev.isAccepted()) QApplication::instance()->quit();
|
||||
// FIXME: Cancel any CGAL calculations
|
||||
}
|
||||
|
||||
void MainWindow::consoleOutput(const std::string &msg, void *userdata)
|
||||
|
|
Loading…
Reference in New Issue