src/addObjectDialog.cpp

changeset 306
fef00a6cbff0
parent 295
a91fa09d686c
child 312
97620579d86c
equal deleted inserted replaced
305:401b9e3f2d10 306:fef00a6cbff0
93 93
94 case LDObject::Subfile: 94 case LDObject::Subfile:
95 { 95 {
96 coordCount = 3; 96 coordCount = 3;
97 97
98 // If the primitive lister is busy writing data, we have to wait
99 // for that to happen first. This should be quite considerably rare.
100 while (primitiveLoaderBusy())
101 ;
102
98 tw_subfileList = new QTreeWidget (); 103 tw_subfileList = new QTreeWidget ();
99 tw_subfileList->setHeaderLabel ("Primitives"); 104 tw_subfileList->setHeaderLabel ("Primitives");
100 105
101 for (PrimitiveCategory& cat : g_PrimitiveCategories) { 106 for (PrimitiveCategory& cat : g_PrimitiveCategories) {
102 SubfileListItem* parentItem = new SubfileListItem (tw_subfileList, null); 107 SubfileListItem* parentItem = new SubfileListItem (tw_subfileList, null);

mercurial