gui.cpp

changeset 3
2b78cf8634c3
parent 0
c51cce84a9ac
child 4
758302636564
equal deleted inserted replaced
2:d71faa0a6133 3:2b78cf8634c3
277 277
278 return QIcon (); 278 return QIcon ();
279 } 279 }
280 280
281 void LDForgeWindow::buildObjList () { 281 void LDForgeWindow::buildObjList () {
282 if (!g_CurrentFile)
283 return;
284
282 QList<QTreeWidgetItem*> qaItems; 285 QList<QTreeWidgetItem*> qaItems;
286
287 qObjList->clear ();
288
283 for (ushort i = 0; i < g_CurrentFile->objects.size(); ++i) { 289 for (ushort i = 0; i < g_CurrentFile->objects.size(); ++i) {
284 LDObject* obj = g_CurrentFile->objects[i]; 290 LDObject* obj = g_CurrentFile->objects[i];
285 291
286 str zText; 292 str zText;
287 switch (obj->getType ()) { 293 switch (obj->getType ()) {

mercurial