gui.cpp

changeset 3
2b78cf8634c3
parent 0
c51cce84a9ac
child 4
758302636564
--- a/gui.cpp	Fri Mar 15 20:35:47 2013 +0200
+++ b/gui.cpp	Fri Mar 15 20:39:29 2013 +0200
@@ -279,7 +279,13 @@
 }
 
 void LDForgeWindow::buildObjList () {
+	if (!g_CurrentFile)
+		return;
+	
 	QList<QTreeWidgetItem*> qaItems;
+	
+	qObjList->clear ();
+	
 	for (ushort i = 0; i < g_CurrentFile->objects.size(); ++i) {
 		LDObject* obj = g_CurrentFile->objects[i];
 		

mercurial