- Timestamp:
- Feb 11, 2025 10:17:27 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167487
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r108153 r108172 3654 3654 return false; 3655 3655 3656 /* For known *global* action types: */3656 /* Some actions available even if no VM items present yet: */ 3657 3657 switch (iActionIndex) 3658 3658 { 3659 /* For known *global* action types: */ 3659 3660 case UIActionIndex_M_Application_S_Preferences: 3660 3661 case UIActionIndexMN_M_File_S_ExportAppliance: … … 3663 3664 case UIActionIndexMN_M_Home_S_Add: 3664 3665 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(); 3665 3672 default: 3666 3673 break; 3667 3674 } 3668 3675 3669 /* No *machine* actions enabled for empty item list: */3676 /* No other *machine* actions enabled for empty item list: */ 3670 3677 if (items.isEmpty()) 3671 3678 return false; … … 3677 3684 switch (iActionIndex) 3678 3685 { 3679 case UIActionIndexMN_M_Group_S_New:3680 case UIActionIndexMN_M_Group_S_Add:3681 {3682 return !isGroupSavingInProgress();3683 }3684 3686 case UIActionIndexMN_M_Group_S_Sort: 3685 3687 { … … 3695 3697 isItemsLocal(items) && 3696 3698 isItemsPoweredOff(items); 3697 }3698 case UIActionIndexMN_M_Machine_S_New:3699 case UIActionIndexMN_M_Machine_S_Add:3700 {3701 return !isGroupSavingInProgress();3702 3699 } 3703 3700 case UIActionIndexMN_M_Machine_S_Settings:
Note:
See TracChangeset
for help on using the changeset viewer.