Changeset 77341 in vbox
- Timestamp:
- Feb 18, 2019 8:49:25 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128874
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r77335 r77341 3074 3074 QUuid uMediumID; 3075 3075 if (target.type == UIMediumTarget::UIMediumTargetType_WithID) 3076 uMediumID = openMediumWithFileOpenDialog(target.mediumType, windowManager().mainWindowShown(), strMachineFolder); 3076 { 3077 int iDialogReturn = openMediumSelectorDialog(windowManager().mainWindowShown(), target.mediumType, uMediumID, 3078 strMachineFolder, "" /*strMachineName*/, 3079 "" /*strMachineGuestOSTypeId*/, true /*fEnableCreate */); 3080 if (iDialogReturn == UIMediumSelector::ReturnCode_LeftEmpty && 3081 (target.mediumType == UIMediumDeviceType_DVD || target.mediumType == UIMediumDeviceType_Floppy)) 3082 fMount = false; 3083 } 3077 3084 else if(target.type == UIMediumTarget::UIMediumTargetType_CreateAdHocVISO) 3078 3085 uMediumID = createVisoMediumWithVisoCreator(windowManager().mainWindowShown(), strMachineFolder, comConstMachine.GetName()); … … 3087 3094 if (!uMediumID.isNull()) 3088 3095 uNewID = uMediumID; 3089 /* Else just exit: */ 3090 else return; 3096 else 3097 /* Else just exit in case left empty is not chosen in medium selector dialog: */ 3098 if (fMount) 3099 return; 3091 3100 } 3092 3101 /* Use medium ID which was passed: */ … … 3103 3112 break; 3104 3113 } 3105 /* Do we have a re sent location? */3114 /* Do we have a recent location? */ 3106 3115 case UIMediumTarget::UIMediumTargetType_WithLocation: 3107 3116 { -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r77326 r77341 3101 3101 int iResult = vboxGlobal().openMediumSelectorDialog(this, m_pMediumIdHolder->type(), uMediumId, 3102 3102 strMachineFolder, m_strMachineName, 3103 m_strMachineGuestOSTypeId, true /* enable create action: */); 3103 m_strMachineGuestOSTypeId, 3104 true /* enable create action: */); 3104 3105 3105 3106 if (iResult == UIMediumSelector::ReturnCode_Rejected || … … 3813 3814 int iResult = vboxGlobal().openMediumSelectorDialog(this, UIMediumDefs::mediumTypeToLocal(enmDeviceType), uMediumId, 3814 3815 strMachineFolder, m_strMachineName, 3815 m_strMachineGuestOSTypeId, true /* enable cr1eate action: */); 3816 m_strMachineGuestOSTypeId, 3817 true /* enable cr1eate action: */); 3816 3818 3817 3819 /* Continue only if iResult is either UIMediumSelector::ReturnCode_Accepted or UIMediumSelector::ReturnCode_LeftEmpty: */
Note:
See TracChangeset
for help on using the changeset viewer.