]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Set new effect's properties properly when updating effect
authorMichal Malý <madcatxster@prifuk.cz>
Mon, 16 Dec 2013 17:05:36 +0000 (18:05 +0100)
committerMichal Malý <madcatxster@prifuk.cz>
Mon, 16 Dec 2013 17:05:36 +0000 (18:05 +0100)
ffbdevice.cpp

index 350dcb1d71914706c43fe60950762a299fa02413..cdd0ea1299c0520ee0beffc77524bd3b049be7e3 100644 (file)
@@ -248,8 +248,10 @@ bool FFBDevice::startEffect(const int idx, FFBEffectTypes type, std::shared_ptr<
       qDebug() << "Recreating effect" << idx;
     } else {
       effect->setInternalIdx(m_effects[idx]->internalIdx());
-      if (m_effects[idx]->status() == FFBEffect::FFBEffectStatus::PLAYING)
+      effect->setStatus(m_effects[idx]->status());
+      if (effect->status() == FFBEffect::FFBEffectStatus::PLAYING) {
         dontStart = true;
+      }
       qDebug() << "Updating effect" << idx;
     }
   }