[rkward-cvs] SF.net SVN: rkward:[2979] trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Aug 31 10:51:01 UTC 2010


Revision: 2979
          http://rkward.svn.sourceforge.net/rkward/?rev=2979&view=rev
Author:   tfry
Date:     2010-08-31 10:51:01 +0000 (Tue, 31 Aug 2010)

Log Message:
-----------
Fix destruction order for edited objects

Modified Paths:
--------------
    trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp

Modified: trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp
===================================================================
--- trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp	2010-08-31 01:23:58 UTC (rev 2978)
+++ trunk/rkward/rkward/dataeditor/rkvareditmodel.cpp	2010-08-31 10:51:01 UTC (rev 2979)
@@ -823,7 +823,7 @@
 	RK_TRACE (EDITOR);
 
 	if (object == dataframe) {
-		while (!objects.isEmpty ()) RKVarEditModel::objectRemoved (objects[0]);
+		while (!objects.isEmpty ()) RKVarEditModel::objectRemoved (objects.last());		// NOTE: The rownames object (index position 0) must always go away last!
 		stopListenForObject (dataframe);
 		dataframe = 0;
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list