Pārlūkot izejas kodu

Correctly test for valid QVariant.

Sascha Zelzer 14 gadi atpakaļ
vecāks
revīzija
73255f6169
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Libs/PluginFramework/ctkPluginAbstractTracked.cpp

+ 1 - 1
Libs/PluginFramework/ctkPluginAbstractTracked.cpp

@@ -101,7 +101,7 @@ void ctkPluginAbstractTracked<Item,Related>::trackInitial()
        * within this synchronized block.
        * within this synchronized block.
        */
        */
       item = initial.takeFirst();
       item = initial.takeFirst();
-      if (tracked.value(item) != 0)
+      if (tracked.value(item).isValid())
       {
       {
         /* if we are already tracking this item */
         /* if we are already tracking this item */
         if (DEBUG)
         if (DEBUG)