Browse Source

Fixed boolean conversion operator.

Sascha Zelzer 13 years ago
parent
commit
8ba2d72e10
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Libs/CommandLineModules/Core/ctkCmdLineModuleReference.cpp

+ 1 - 1
Libs/CommandLineModules/Core/ctkCmdLineModuleReference.cpp

@@ -43,7 +43,7 @@ ctkCmdLineModuleReference &ctkCmdLineModuleReference::operator =(const ctkCmdLin
 
 ctkCmdLineModuleReference::operator bool()
 {
-  return d;
+  return !d->RawXmlDescription.isEmpty();
 }
 
 ctkCmdLineModuleDescription ctkCmdLineModuleReference::description() const