fixed: double-clicking an object and editing it that way would not register to history

Sun, 07 Jul 2013 23:22:28 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sun, 07 Jul 2013 23:22:28 +0300
changeset 361
f4c029f2a75b
parent 360
77f08db90249
child 362
344fe1da32c8

fixed: double-clicking an object and editing it that way would not register to history

src/gldraw.cpp file | annotate | diff | comparison | revisions
--- a/src/gldraw.cpp	Sun Jul 07 23:17:17 2013 +0300
+++ b/src/gldraw.cpp	Sun Jul 07 23:22:28 2013 +0300
@@ -1605,8 +1605,10 @@
 	if (g_win->sel ().size () == 0)
 		return;
 	
-	LDObject* obj = g_win->sel ()[0];
+	file()->openHistory();
+	LDObject* obj = g_win->sel()[0];
 	AddObjectDialog::staticDialog (obj->getType (), obj);
+	file()->closeHistory();
 	ev->accept ();
 }
 

mercurial