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