summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-25 22:16:45 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-25 22:16:45 (GMT)
commit63050a31b8ec0c72aeffe873a13a66603e4a250f (patch)
treef5e288e67191b7b6e15e660334093af2331afed2 /src/mainwin.cc
parent7c48b345b12981085bf6741208893a8206d77578 (diff)
fixed recently introduced locking bug
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc6
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);
}
contact: Jan Huwald // Impressum