]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/prop.cpp
Moved iProp interface registration to the constructor to fix a SEGFAULT in the iProp...
[evaf] / src / libs / Common / prop.cpp
index b3ccb6fa98b383d9ebc3ee034c1dee88e7c4b9e4..86d3b1e61558a034dbab336e8b821aa394699ceb 100644 (file)
@@ -47,6 +47,9 @@ Prop::Prop()
     , mPersistentProps(0)
 {
     setObjectName(QString("%1.iProp").arg(VER_MODULE_NAME_STR));
+
+    // Register the iProp interface
+    iRegistry::instance()->registerInterface("iProp", this);
 }
 
 Prop::~Prop()
@@ -61,9 +64,6 @@ iProp * Prop::interface() const
 
 bool Prop::init()
 {
-    // Register the iProp interface
-    iRegistry::instance()->registerInterface("iProp", this);
-
     // Set application name and language properties
     setValue("applicationName", iApp::instance()->name());
     setValue("applicationLanguage", iApp::instance()->language());