VirtualBox

Changeset 108225 in vbox


Ignore:
Timestamp:
Feb 14, 2025 2:34:01 PM (4 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167545
Message:

FE/Qt: bugref:10814: VBox Manager / Tool-pane: Yet another small cleanup for tool model.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp

    r108224 r108225  
    108108{
    109109    if (!currentItem() || currentItem()->itemType() != enmType)
    110     {
    111         foreach (UIToolsItem *pItem, items())
    112             if (pItem->itemType() == enmType)
    113             {
    114                 setCurrentItem(pItem);
    115                 break;
    116             }
    117     }
     110        setCurrentItem(item(enmType));
    118111}
    119112
     
    145138        foreach (UIToolsItem *pItem, items())
    146139            pItem->setVisible(!m_restrictedToolTypes.contains(pItem->itemType()));
     140
     141        /* Update linked values: */
    147142        updateLayout();
    148143        updateNavigation();
     
    632627void UIToolsModel::cleanup()
    633628{
    634     /* Cleanup items: */
     629    /* Cleanup everything: */
    635630    cleanupItems();
    636     /* Cleanup scene: */
    637631    cleanupScene();
    638632}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette