From 8654b79df7151c78875f023ff19579e3898f248a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Fri, 4 Nov 2011 11:14:31 +0000 Subject: [PATCH] Fixed ugly backup bug git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12770 383ad7c9-94d9-4d36-a494-682f7c89f535 --- RemesherPlugin.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RemesherPlugin.cc b/RemesherPlugin.cc index 5244c94..0cc35cf 100644 --- a/RemesherPlugin.cc +++ b/RemesherPlugin.cc @@ -109,6 +109,8 @@ void RemesherPlugin::initializePlugin() { toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"remesher.png"); emit addToolbox( tr("Remesher") , tool_ , toolIcon_); } + + connect(this, SIGNAL( finishJob(QString)), this, SLOT(threadFinished(QString)), Qt::QueuedConnection); } // ---------------------------------------------------------------------------------------- @@ -228,7 +230,7 @@ void RemesherPlugin::adaptiveRemeshingButtonClicked() { connect(thread, SIGNAL( finished(QString)), this, SIGNAL(finishJob(QString))); connect(thread, SIGNAL( function() ), this, SLOT(adaptiveRemeshing()),Qt::DirectConnection); - connect(this, SIGNAL( finishJob(QString)), this, SLOT(threadFinished(QString)), Qt::QueuedConnection); + emit startJob( jobId, "Adaptive remeshing" , 0 , 100 , true); @@ -320,7 +322,6 @@ void RemesherPlugin::uniformRemeshingButtonClicked() { connect(thread, SIGNAL( state(QString, int)), this, SIGNAL(setJobState(QString, int))); connect(thread, SIGNAL( finished(QString)), this, SIGNAL(finishJob(QString))); connect(thread, SIGNAL( function() ), this, SLOT(uniformRemeshing()),Qt::DirectConnection); - connect(this, SIGNAL( finishJob(QString)), this, SLOT(threadFinished(QString)), Qt::QueuedConnection); emit startJob( name() + "UniformRemeshing", "Uniform remeshing" , 0 , 100 , true); -- GitLab