VirtualBox

Changeset 108172 in vbox for trunk/src


Ignore:
Timestamp:
Feb 11, 2025 10:17:27 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167487
Message:

FE/Qt: bugref:10814: VBox Manager: Adjust New/Add Group/Machine actions to be available for empty list as well.

File:
1 edited

Legend:

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

    r108153 r108172  
    36543654        return false;
    36553655
    3656     /* For known *global* action types: */
     3656    /* Some actions available even if no VM items present yet: */
    36573657    switch (iActionIndex)
    36583658    {
     3659        /* For known *global* action types: */
    36593660        case UIActionIndex_M_Application_S_Preferences:
    36603661        case UIActionIndexMN_M_File_S_ExportAppliance:
     
    36633664        case UIActionIndexMN_M_Home_S_Add:
    36643665            return true;
     3666        /* For known *machine* action types: */
     3667        case UIActionIndexMN_M_Group_S_New:
     3668        case UIActionIndexMN_M_Group_S_Add:
     3669        case UIActionIndexMN_M_Machine_S_New:
     3670        case UIActionIndexMN_M_Machine_S_Add:
     3671            return !isGroupSavingInProgress();
    36653672        default:
    36663673            break;
    36673674    }
    36683675
    3669     /* No *machine* actions enabled for empty item list: */
     3676    /* No other *machine* actions enabled for empty item list: */
    36703677    if (items.isEmpty())
    36713678        return false;
     
    36773684    switch (iActionIndex)
    36783685    {
    3679         case UIActionIndexMN_M_Group_S_New:
    3680         case UIActionIndexMN_M_Group_S_Add:
    3681         {
    3682             return !isGroupSavingInProgress();
    3683         }
    36843686        case UIActionIndexMN_M_Group_S_Sort:
    36853687        {
     
    36953697                   isItemsLocal(items) &&
    36963698                   isItemsPoweredOff(items);
    3697         }
    3698         case UIActionIndexMN_M_Machine_S_New:
    3699         case UIActionIndexMN_M_Machine_S_Add:
    3700         {
    3701             return !isGroupSavingInProgress();
    37023699        }
    37033700        case UIActionIndexMN_M_Machine_S_Settings:
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