--- 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];