|
Lines 229-241
void ObjectManager::tryRegisterPostponed()
Link Here
|
| 229 |
{ |
229 |
{ |
| 230 |
postponedSize = m_postponedRegistrations.size(); |
230 |
postponedSize = m_postponedRegistrations.size(); |
| 231 |
|
231 |
|
| 232 |
for(auto it = m_postponedRegistrations.begin(); it != m_postponedRegistrations.end(); it++) |
232 |
for(auto it = m_postponedRegistrations.cbegin(); it != m_postponedRegistrations.cend();) |
| 233 |
{ |
233 |
{ |
| 234 |
if(registerBlock(m_blockObjects[*it], false)) |
234 |
if(registerBlock(m_blockObjects[*it], false)) |
| 235 |
{ |
235 |
{ |
| 236 |
qDebug() << "Pop " << *it << " from m_postponedRegistrations"; |
236 |
qDebug() << "Pop " << *it << " from m_postponedRegistrations"; |
| 237 |
m_postponedRegistrations.erase(it); |
237 |
it = m_postponedRegistrations.erase(it); |
| 238 |
} |
238 |
} |
|
|
239 |
else |
| 240 |
++it; |
| 239 |
} |
241 |
} |
| 240 |
} while(postponedSize > m_postponedRegistrations.size()); |
242 |
} while(postponedSize > m_postponedRegistrations.size()); |
| 241 |
} |
243 |
} |