--- a/src/addObjectDialog.cc Fri May 16 01:22:24 2014 +0300
+++ b/src/addObjectDialog.cc Fri May 16 21:31:20 2014 +0300
@@ -317,7 +317,7 @@
static QSharedPointer<T> initObj (LDObjectPtr& obj)
{
if (obj == null)
- obj = LDObjectPtr (new T);
+ obj = spawn<T>();
return obj.staticCast<T>();
}