diff options
author | Marius Kintel <marius@kintel.net> | 2013-01-17 18:31:12 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-01-17 18:31:12 (GMT) |
commit | 7f4cfc5ada494852979eb290ba76a34bfd684854 (patch) | |
tree | 263eef1d1fba1feec98b237579341057d0983210 /src | |
parent | 0e4e8b64a7195b9b65cf029ccf8bb9f795bd9bae (diff) |
Added some fixme's related to quitting while doing a long calculation. It sometimes causes a crash atm.
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwin.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 5c18b17..38355ff 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -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) |