Changeset 83060 in vbox
- Timestamp:
- Feb 12, 2020 2:05:00 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136097
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r83011 r83060 1867 1867 { 1868 1868 case UIActionIndexST_M_Group_S_New: 1869 { 1870 return !isGroupSavingInProgress() && 1871 isSingleGroupSelected(); 1872 } 1869 1873 case UIActionIndexST_M_Group_S_Add: 1870 1874 case UIActionIndexST_M_Group_S_Sort: -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r83034 r83060 44 44 #include "UIModalWindowManager.h" 45 45 #include "UIVirtualBoxManagerWidget.h" 46 #include "UIVirtualMachineItem.h" 47 #include "UIWizardNewCloudVM.h" 46 48 #include "UIWizardNewVM.h" 47 49 … … 881 883 actionPool()->action(UIActionIndexST_M_Group_S_New)->setEnabled(false); 882 884 883 /* Use the "safe way" to open stack of Mac OS X Sheets: */ 884 QWidget *pWizardParent = windowManager().realParentWindow(chooser()->managerWidget()); 885 UISafePointerWizardNewVM pWizard = new UIWizardNewVM(pWizardParent, strGroupName); 886 windowManager().registerNewParent(pWizard, pWizardParent); 887 pWizard->prepare(); 888 889 /* Execute wizard: */ 890 pWizard->exec(); 891 if (pWizard) 885 /* What first item do we have? */ 886 if ( !firstSelectedMachineItem() 887 ||firstSelectedMachineItem()->itemType() == UIVirtualMachineItem::ItemType_Local) 888 { 889 /* Use the "safe way" to open stack of Mac OS X Sheets: */ 890 QWidget *pWizardParent = windowManager().realParentWindow(chooser()->managerWidget()); 891 UISafePointerWizardNewVM pWizard = new UIWizardNewVM(pWizardParent, strGroupName); 892 windowManager().registerNewParent(pWizard, pWizardParent); 893 pWizard->prepare(); 894 895 /* Execute wizard: */ 896 pWizard->exec(); 892 897 delete pWizard; 898 } 899 else 900 { 901 /* Use the "safe way" to open stack of Mac OS X Sheets: */ 902 QWidget *pWizardParent = windowManager().realParentWindow(chooser()->managerWidget()); 903 UISafePointerWizardNewCloudVM pWizard = new UIWizardNewCloudVM(pWizardParent); 904 windowManager().registerNewParent(pWizard, pWizardParent); 905 pWizard->prepare(); 906 907 /* Execute wizard: */ 908 pWizard->exec(); 909 delete pWizard; 910 } 893 911 894 912 /* Unlock the action allowing further calls: */
Note:
See TracChangeset
for help on using the changeset viewer.