VirtualBox

Changeset 102308 in vbox


Ignore:
Timestamp:
Nov 27, 2023 12:44:53 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160442
Message:

FE/Qt: bugref:10513: Fixing regression intruduced in r160231; Though tool menu update isn't a part of item fetch now, it is still required before item fetching when current item had changed, because user can switch from local to cloud item and restricted tools should be closed first.

File:
1 edited

Legend:

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

    r102269 r102308  
    439439    }
    440440
     441    /* Update tools restrictions for currently selected item: */
     442    UIVirtualMachineItem *pItem = currentItem();
     443    if (pItem)
     444        updateToolsMenuMachine(pItem);
     445    else
     446        updateToolsMenuGlobal();
     447
    441448    /* Recache current item info if machine or group item selected: */
    442449    if (isMachineItemSelected() || isGroupItemSelected())
     
    455462                                            ? SelectionType_FirstIsCloudMachineItem
    456463                                            : SelectionType_Invalid;
    457     /* Acquire current item: */
    458     UIVirtualMachineItem *pItem = currentItem();
     464
     465    /* Update toolbar if selection type or item accessibility got changed: */
    459466    const bool fCurrentItemIsOk = pItem && pItem->accessible();
    460 
    461     /* Update toolbar if selection type or item accessibility got changed: */
    462467    if (   m_enmSelectionType != enmSelectedItemType
    463468        || m_fSelectedMachineItemAccessible != fCurrentItemIsOk)
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