Browse Source

Correctly test for valid QVariant.

Sascha Zelzer 14 years ago
parent
commit
73255f6169
1 changed files with 1 additions and 1 deletions
  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.
        */
       item = initial.takeFirst();
-      if (tracked.value(item) != 0)
+      if (tracked.value(item).isValid())
       {
         /* if we are already tracking this item */
         if (DEBUG)