- Timestamp:
- May 6, 2019 2:41:45 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.cpp
r78374 r78392 232 232 /* Attempt to change medium type: */ 233 233 comMedium.SetType(enmNewType); 234 234 bool fSuccess = true; 235 235 /* Show error message if necessary: */ 236 236 if (!comMedium.isOk() && parentTree()) 237 237 { 238 238 msgCenter().cannotChangeMediumType(comMedium, enmOldType, enmNewType, treeWidget()); 239 returnfalse;239 fSuccess = false; 240 240 } 241 241 /* Reattach the medium to all the vms it was previously attached: */ 242 242 foreach (const AttachmentCache &attachmentCache, attachmentCacheList) 243 243 attachTo(attachmentCache); 244 return true;244 return fSuccess; 245 245 } 246 246 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r78386 r78392 273 273 if ( comMedium.isOk() 274 274 && newData.m_options.m_enmMediumType != oldData.m_options.m_enmMediumType) 275 {276 275 pMediumItem->changeMediumType(oldData.m_options.m_enmMediumType, newData.m_options.m_enmMediumType); 277 }278 276 279 277 /* Try to assign new medium location: */ … … 1046 1044 { 1047 1045 m_pDetailsWidget->setData(pMediumItem ? *pMediumItem : UIDataMedium(type)); 1048 if (pMediumItem )1046 if (pMediumItem && currentMediumItem()) 1049 1047 m_pDetailsWidget->enableDisableMediumModificationWidgets(currentMediumItem()->isMediumModifiable()); 1050 1048 }
Note:
See TracChangeset
for help on using the changeset viewer.