- Timestamp:
- Feb 19, 2019 10:33:05 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r77345 r77356 2549 2549 CVirtualBox comVBox = virtualBox(); 2550 2550 2551 updateRecentlyUsedMediumListAndFolder(enmMediumType, strMediumLocation);2552 2553 2551 /* Open corresponding medium: */ 2554 2552 CMedium comMedium = comVBox.OpenMedium(strMediumLocation, mediumTypeToGlobal(enmMediumType), KAccessMode_ReadWrite, false); … … 2637 2635 /* If dialog has some result: */ 2638 2636 if (!files.empty() && !files[0].isEmpty()) 2639 return openMedium(enmMediumType, files[0], pParent); 2640 2637 { 2638 QUuid uMediumId = openMedium(enmMediumType, files[0], pParent); 2639 updateRecentlyUsedMediumListAndFolder(enmMediumType, medium(uMediumId).location()); 2640 return uMediumId; 2641 } 2641 2642 return QUuid(); 2642 2643 } … … 2694 2695 break; 2695 2696 } 2697 if (!uMediumId.isNull()) 2698 updateRecentlyUsedMediumListAndFolder(enmMediumType, medium(uMediumId).location()); 2696 2699 2697 2700 return uMediumId; … … 2829 2832 returnCode = UIMediumSelector::ReturnCode_Rejected; 2830 2833 else 2834 { 2831 2835 outUuid = selectedMediumIds[0]; 2836 updateRecentlyUsedMediumListAndFolder(enmMediumType, medium(outUuid).location()); 2837 } 2832 2838 } 2833 2839 delete pSelector; -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIFDCreationDialog.cpp
r77344 r77356 217 217 /* Notify VBoxGlobal about the new medium: */ 218 218 vboxGlobal().createMedium(UIMedium(newMedium, UIMediumDeviceType_Floppy, KMediumState_Created)); 219 /* Update the recently used media list: */220 vboxGlobal().updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType_Floppy, strMediumLocation);221 219 222 220 /* After a successful creation and initilization of the floppy disk we call base class accept -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp
r77291 r77356 443 443 repopulateTreeWidget(); 444 444 selectMedium(uMediumID); 445 446 445 } 447 446 … … 450 449 QUuid uMediumId = vboxGlobal().openMediumCreatorDialog(this, m_enmMediumType, m_strMachineFolder, 451 450 m_strMachineName, m_strMachineGuestOSTypeId); 452 if (!uMediumId.isNull()) 453 { 454 /* Update the tree widget making sure we show the new item: */ 455 repopulateTreeWidget(); 456 /* Select the new item: */ 457 selectMedium(uMediumId); 458 /* Update the search: */ 459 m_pSearchWidget->search(m_pTreeWidget); 460 } 451 if (uMediumId.isNull()) 452 return; 453 /* Update the tree widget making sure we show the new item: */ 454 repopulateTreeWidget(); 455 /* Select the new item: */ 456 selectMedium(uMediumId); 457 /* Update the search: */ 458 m_pSearchWidget->search(m_pTreeWidget); 461 459 } 462 460
Note:
See TracChangeset
for help on using the changeset viewer.