Changeset 77654 in vbox for trunk/src/VBox
- Timestamp:
- Mar 11, 2019 2:40:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r77638 r77654 434 434 AssertMsg(m_globalItems.contains(pItem), ("Global-item was not found!")); 435 435 m_globalItems.removeAt(m_globalItems.indexOf(pItem)); 436 if (pItem->isFavorite()) 437 m_pLayoutFavorite->removeItem(pItem); 438 else 439 m_pLayoutGlobal->removeItem(pItem); 436 440 break; 437 441 } … … 440 444 AssertMsg(m_groupItems.contains(pItem), ("Group-item was not found!")); 441 445 m_groupItems.removeAt(m_groupItems.indexOf(pItem)); 446 if (pItem->isFavorite()) 447 m_pLayoutFavorite->removeItem(pItem); 448 else 449 m_pLayoutGroup->removeItem(pItem); 442 450 break; 443 451 } … … 446 454 AssertMsg(m_machineItems.contains(pItem), ("Machine-item was not found!")); 447 455 m_machineItems.removeAt(m_machineItems.indexOf(pItem)); 456 if (pItem->isFavorite()) 457 m_pLayoutFavorite->removeItem(pItem); 458 else 459 m_pLayoutMachine->removeItem(pItem); 448 460 break; 449 461 } … … 537 549 void UIChooserItemGroup::updateGeometry() 538 550 { 539 /* Call to base-class: */540 UIChooserItem::updateGeometry();541 542 551 /* Update/activate children layout: */ 543 552 m_pLayout->updateGeometry(); 544 553 m_pLayout->activate(); 554 555 /* Call to base-class: */ 556 UIChooserItem::updateGeometry(); 545 557 } 546 558
Note:
See TracChangeset
for help on using the changeset viewer.