499 // ============================================================================= |
499 // ============================================================================= |
500 // ----------------------------------------------------------------------------- |
500 // ----------------------------------------------------------------------------- |
501 void ForgeWindow::updateSelection() { |
501 void ForgeWindow::updateSelection() { |
502 g_bSelectionLocked = true; |
502 g_bSelectionLocked = true; |
503 |
503 |
|
504 print ("1\n"); |
504 for (LDObject* obj : LDFile::current()->objects()) |
505 for (LDObject* obj : LDFile::current()->objects()) |
505 obj->setSelected (false); |
506 obj->setSelected (false); |
506 |
507 |
|
508 print ("2\n"); |
507 ui->objectList->clearSelection(); |
509 ui->objectList->clearSelection(); |
|
510 |
|
511 print ("3\n"); |
508 for (LDObject* obj : m_sel) { |
512 for (LDObject* obj : m_sel) { |
509 if (obj->qObjListEntry == null) |
513 if (obj->qObjListEntry == null) |
510 continue; |
514 continue; |
511 |
515 |
512 obj->qObjListEntry->setSelected (true); |
516 obj->qObjListEntry->setSelected (true); |
513 obj->setSelected (true); |
517 obj->setSelected (true); |
514 } |
518 } |
515 |
519 |
|
520 print ("4\n"); |
516 g_bSelectionLocked = false; |
521 g_bSelectionLocked = false; |
517 slot_selectionChanged(); |
522 slot_selectionChanged(); |
518 } |
523 } |
519 |
524 |
520 // ============================================================================= |
525 // ============================================================================= |