Changeset 73018 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 10, 2018 8:49:42 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIFDCreationDialog.cpp
r72927 r73018 181 181 182 182 CVirtualBox vbox = vboxGlobal().virtualBox(); 183 184 CMedium newMedium = vbox.CreateMedium(mediumFormats[0].GetName(), m_pFilePathselector->path(), 183 QString strMediumLocation = m_pFilePathselector->path(); 184 185 CMedium newMedium = vbox.CreateMedium(mediumFormats[0].GetName(), strMediumLocation, 185 186 KAccessMode_ReadWrite, KDeviceType_Floppy); 186 187 if (!vbox.isOk()) 187 188 { 188 msgCenter().cannotCreateMediumStorage(vbox, m_pFilePathselector->path(), this);189 msgCenter().cannotCreateMediumStorage(vbox, strMediumLocation, this); 189 190 return; 190 191 } … … 198 199 if (!newMedium.isOk()) 199 200 { 200 msgCenter().cannotCreateMediumStorage(newMedium, m_pFilePathselector->path(), this);201 msgCenter().cannotCreateMediumStorage(newMedium, strMediumLocation, this); 201 202 return; 202 203 } … … 208 209 if (!progress.isOk() || progress.GetResultCode() != 0) 209 210 { 210 msgCenter().cannotCreateHardDiskStorage(progress, m_pFilePathselector->path(), this);211 msgCenter().cannotCreateHardDiskStorage(progress, strMediumLocation, this); 211 212 return; 212 213 } … … 216 217 /* Notify VBoxGlobal about the new medium: */ 217 218 vboxGlobal().createMedium(UIMedium(newMedium, UIMediumType_Floppy, KMediumState_Created)); 218 219 /* Notify VBoxGlobal about the new medium: */ 220 vboxGlobal().updateRecentlyUsedMediumListAndFolder(UIMediumType_Floppy, strMediumLocation); 219 221 220 222 /* After a successful creation and initilization of the floppy disk we call base class accept
Note:
See TracChangeset
for help on using the changeset viewer.