diff options
author | Marius Kintel <marius@kintel.net> | 2011-12-25 22:16:45 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-12-25 22:16:45 (GMT) |
commit | 63050a31b8ec0c72aeffe873a13a66603e4a250f (patch) | |
tree | f5e288e67191b7b6e15e660334093af2331afed2 | |
parent | 7c48b345b12981085bf6741208893a8206d77578 (diff) |
fixed recently introduced locking bug
-rw-r--r-- | src/mainwin.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index a3ec72f..5c81554 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -144,7 +144,8 @@ MainWindow::MainWindow(const QString &filename) setupUi(this); this->cgalworker = new CGALWorker(); - connect(this->cgalworker, SIGNAL(done(CGAL_Nef_polyhedron *)), this, SLOT(actionRenderCGALDone(CGAL_Nef_polyhedron *))); + connect(this->cgalworker, SIGNAL(done(CGAL_Nef_polyhedron *)), + this, SLOT(actionRenderCGALDone(CGAL_Nef_polyhedron *))); register_builtin(root_ctx); @@ -1132,7 +1133,7 @@ void MainWindow::actionCompile() void MainWindow::actionRenderCGAL() { if (GuiLocker::isLocked()) return; - GuiLocker::lock(); + GuiLocker lock; setCurrentOutput(); console->clear(); @@ -1161,6 +1162,7 @@ void MainWindow::actionRenderCGAL() progress_report_prep(this->root_node, report_func, this); + GuiLocker::lock(); // Will be unlocked in actionRenderCGALDone() this->cgalworker->start(this->tree); } |