[rkward-cvs] SF.net SVN: rkward: [817] trunk/rkward/rkward/misc/rkobjectlistview.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Oct 5 17:35:30 UTC 2006


Revision: 817
          http://svn.sourceforge.net/rkward/?rev=817&view=rev
Author:   tfry
Date:     2006-10-05 10:35:26 -0700 (Thu, 05 Oct 2006)

Log Message:
-----------
Always set the GlobalEnv item to expanded

Modified Paths:
--------------
    trunk/rkward/rkward/misc/rkobjectlistview.cpp

Modified: trunk/rkward/rkward/misc/rkobjectlistview.cpp
===================================================================
--- trunk/rkward/rkward/misc/rkobjectlistview.cpp	2006-10-05 15:18:11 UTC (rev 816)
+++ trunk/rkward/rkward/misc/rkobjectlistview.cpp	2006-10-05 17:35:26 UTC (rev 817)
@@ -27,6 +27,7 @@
 
 #include "../rkglobals.h"
 #include "../core/robjectlist.h"
+#include "../core/renvironmentobject.h"
 #include "../core/rkvariable.h"
 #include "../core/rkmodificationtracker.h"
 #include "../settings/rksettings.h"
@@ -123,8 +124,12 @@
 
 void RKObjectListView::initialize (bool fetch_list) {
 	RK_TRACE (APP);
+
 	addObject (0, RObjectList::getObjectList (), fetch_list);
-	
+	RKListViewItem *item = findObjectItem (RObjectList::getGlobalEnv ());
+	RK_ASSERT (item);
+	item->setOpen (true);
+
 	connect (RKGlobals::tracker (), SIGNAL (objectRemoved (RObject *)), this, SLOT (objectRemoved (RObject*)));
 	connect (RKGlobals::tracker (), SIGNAL (objectPropertiesChanged (RObject *)), this, SLOT (objectPropertiesChanged (RObject*)));
 	connect (RKGlobals::tracker (), SIGNAL (objectAdded (RObject *)), this, SLOT (objectAdded (RObject*)));


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