Procházet zdrojové kódy

Changed assignment to equality in ctkCmdLineModuleProcessWatcher

MattClarkson před 13 roky
rodič
revize
240f345b9e

+ 1 - 1
Libs/CommandLineModules/Backend/LocalProcess/ctkCmdLineModuleProcessWatcher.cpp

@@ -84,7 +84,7 @@ void ctkCmdLineModuleProcessWatcher::filterResult(const QString &parameter, cons
 void ctkCmdLineModuleProcessWatcher::filterFinished(const QString& name, const QString& comment)
 void ctkCmdLineModuleProcessWatcher::filterFinished(const QString& name, const QString& comment)
 {
 {
   int progressValue = incrementProgress();
   int progressValue = incrementProgress();
-  if (progressValue = 1000) progressValue = 1001;
+  if (progressValue == 1000) progressValue = 1001;
   futureInterface.setProgressValueAndText(progressValue, comment.isEmpty() ? tr("Finished ") + name : comment);
   futureInterface.setProgressValueAndText(progressValue, comment.isEmpty() ? tr("Finished ") + name : comment);
 }
 }