src/addObjectDialog.cc

changeset 770
b04c1e6ca1fb
parent 769
8bb3bed44570
child 784
f82ab4d3c7b4
--- 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>();
 }

mercurial