diff options
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index c0a0bff..f70b451 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -451,6 +451,7 @@ void MainWindow::report_func(const class AbstractNode*, void *vp, int mark) if (percent > thisp->progresswidget->value()) { QMetaObject::invokeMethod(thisp->progresswidget, "setValue", Qt::QueuedConnection, Q_ARG(int, percent)); + QApplication::processEvents(); } if (thisp->progresswidget->wasCanceled()) throw ProgressCancelException(); @@ -749,9 +750,8 @@ void MainWindow::compileCSG(bool procevents) this->progresswidget = new ProgressWidget(this); connect(this->progresswidget, SIGNAL(requestShow()), this, SLOT(showProgress())); - QApplication::processEvents(); - progress_report_prep(root_node, report_func, this); + progress_report_prep(this->root_node, report_func, this); try { CGALEvaluator cgalevaluator(this->tree); PolySetCGALEvaluator psevaluator(cgalevaluator); @@ -1152,13 +1152,10 @@ void MainWindow::actionRenderCGAL() } PRINT("Rendering Polygon Mesh using CGAL..."); - QApplication::processEvents(); this->progresswidget = new ProgressWidget(this); connect(this->progresswidget, SIGNAL(requestShow()), this, SLOT(showProgress())); - QApplication::processEvents(); - progress_report_prep(this->root_node, report_func, this); GuiLocker::lock(); // Will be unlocked in actionRenderCGALDone() |