- Timestamp:
- Apr 20, 2020 1:54:44 PM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r83710 r83857 939 939 return; 940 940 941 /* Select the parent: */942 UIChooserNode *pGroup = 0;943 if (isSingleGroupSelected())944 pGroup = firstSelectedItem()->node();945 else if (!selectedItems().isEmpty())946 pGroup = firstSelectedItem()->parentItem()->node();947 QString strGroupName;948 if (pGroup)949 strGroupName = pGroup->fullName();950 951 941 /* Lock the action preventing cascade calls: */ 952 942 actionPool()->action(UIActionIndexST_M_Welcome_S_New)->setEnabled(false); … … 958 948 ||firstSelectedMachineItem()->itemType() == UIVirtualMachineItem::ItemType_Local) 959 949 { 950 /* Select the parent: */ 951 UIChooserNode *pGroup = 0; 952 if (isSingleGroupSelected()) 953 pGroup = firstSelectedItem()->node(); 954 else if (!selectedItems().isEmpty()) 955 pGroup = firstSelectedItem()->parentItem()->node(); 956 QString strGroupName; 957 if (pGroup) 958 strGroupName = pGroup->fullName(); 959 960 960 /* Use the "safe way" to open stack of Mac OS X Sheets: */ 961 961 QWidget *pWizardParent = windowManager().realParentWindow(chooser()->managerWidget()); … … 983 983 // ourselves cause there is no corresponding event yet. So we are calling actual handler to do that. 984 984 foreach (const CCloudMachine &comMachine, pWizard->machines()) 985 sltCloudMachineRegistered(p Group->parentNode()->name() /* provider name */,986 p Group->name() /* profile name */,985 sltCloudMachineRegistered(pWizard->source() /* provider name */, 986 pWizard->profileName() /* profile name */, 987 987 comMachine.GetId() /* machine ID */, 988 988 true /* registered? */); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVM.cpp
r83676 r83857 66 66 } 67 67 68 QString UIWizardAddCloudVM::source() const 69 { 70 return field("source").toString(); 71 } 72 73 QString UIWizardAddCloudVM::profileName() const 74 { 75 return field("profileName").toString(); 76 } 77 68 78 bool UIWizardAddCloudVM::addCloudVMs() 69 79 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVM.h
r83676 r83857 66 66 QList<CCloudMachine> machines() const { return m_machines; } 67 67 68 /** Returns source. */ 69 QString source() const; 70 /** Returns profile name. */ 71 QString profileName() const; 72 68 73 /** Adds cloud VMs. */ 69 74 bool addCloudVMs(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.cpp
r83653 r83857 601 601 602 602 /* Register fields: */ 603 registerField("source", this, "source"); 604 registerField("profileName", this, "profileName"); 603 605 registerField("instanceIds", this, "instanceIds"); 604 606 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageBasic1.h
r83653 r83857 133 133 { 134 134 Q_OBJECT; 135 Q_PROPERTY(QString source READ source); 136 Q_PROPERTY(QString profileName READ profileName); 135 137 Q_PROPERTY(QStringList instanceIds READ instanceIds); 136 138 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp
r83653 r83857 154 154 155 155 /* Register fields: */ 156 registerField("source", this, "source"); 157 registerField("profileName", this, "profileName"); 156 158 registerField("instanceIds", this, "instanceIds"); 157 159 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h
r83653 r83857 33 33 { 34 34 Q_OBJECT; 35 Q_PROPERTY(QString source READ source); 36 Q_PROPERTY(QString profileName READ profileName); 35 37 Q_PROPERTY(QStringList instanceIds READ instanceIds); 36 38
Note:
See TracChangeset
for help on using the changeset viewer.