Changeset 68459 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 18, 2017 10:33:01 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r65632 r68459 46 46 # include "UISelectorWindow.h" 47 47 # include "UIVirtualBoxEventHandler.h" 48 # include "UIModalWindowManager.h" 48 49 49 50 /* COM includes: */ … … 889 890 strGroupName = pGroup->fullName(); 890 891 891 /* Prepare the new VM wizard: */ 892 UISafePointerWizardNewVM pWizard = new UIWizardNewVM(m_pChooser->selector(), strGroupName); 892 /* Lock the action preventing cascade calls: */ 893 actionPool()->action(UIActionIndexST_M_Machine_S_New)->setEnabled(false); 894 actionPool()->action(UIActionIndexST_M_Group_S_New)->setEnabled(false); 895 896 /* Use the "safe way" to open stack of Mac OS X Sheets: */ 897 QWidget *pWizardParent = windowManager().realParentWindow(m_pChooser->selector()); 898 UISafePointerWizardNewVM pWizard = new UIWizardNewVM(pWizardParent, strGroupName); 899 windowManager().registerNewParent(pWizard, pWizardParent); 893 900 pWizard->prepare(); 894 901 … … 900 907 if (pWizard) 901 908 delete pWizard; 909 910 /* Unlock the action allowing further calls: */ 911 actionPool()->action(UIActionIndexST_M_Machine_S_New)->setEnabled(true); 912 actionPool()->action(UIActionIndexST_M_Group_S_New)->setEnabled(true); 902 913 } 903 914
Note:
See TracChangeset
for help on using the changeset viewer.