Преглед изворни кода

Changed assignment to equality in ctkCmdLineModuleProcessWatcher

MattClarkson пре 13 година
родитељ
комит
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)
 {
   int progressValue = incrementProgress();
-  if (progressValue = 1000) progressValue = 1001;
+  if (progressValue == 1000) progressValue = 1001;
   futureInterface.setProgressValueAndText(progressValue, comment.isEmpty() ? tr("Finished ") + name : comment);
 }