Changeset 87607 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 4, 2021 2:20:49 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142642
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r87575 r87607 449 449 m_pISOFilePathSelector->setFileDialogFilters("*.iso *.ISO"); 450 450 m_pISOFilePathSelector->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); 451 m_pISOFilePathSelector->setHomeDir(uiCommon().defaultFolderPathForType(UIMediumDeviceType_DVD)); 451 452 pISOSelectorLayout->addWidget(m_pISOFilePathSelector); 452 453 } … … 567 568 determineOSType(strPath); 568 569 setTypeByISODetectedOSType(m_strDetectedOSTypeId); 570 /* Update the global recent ISO path: */ 571 QFileInfo fileInfo(strPath); 572 if (fileInfo.exists() && fileInfo.isReadable()) 573 uiCommon().updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType_DVD, strPath); 569 574 570 575 emit completeChanged(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r87592 r87607 165 165 setTypeByISODetectedOSType(m_strDetectedOSTypeId); 166 166 disableEnableUnattendedRelatedWidgets(isUnattendedEnabled()); 167 168 /* Update the global recent ISO path: */ 169 QFileInfo fileInfo(strPath); 170 if (fileInfo.exists() && fileInfo.isReadable()) 171 uiCommon().updateRecentlyUsedMediumListAndFolder(UIMediumDeviceType_DVD, strPath); 172 167 173 emit completeChanged(); 168 174 } … … 324 330 m_pISOFilePathSelector->setMode(UIFilePathSelector::Mode_File_Open); 325 331 m_pISOFilePathSelector->setFileDialogFilters("*.iso *.ISO"); 332 m_pISOFilePathSelector->setHomeDir(uiCommon().defaultFolderPathForType(UIMediumDeviceType_DVD)); 326 333 pInstallationISOContainerLayout->addWidget(m_pISOFilePathSelector); 327 334 }
Note:
See TracChangeset
for help on using the changeset viewer.