Changeset 105561 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 1, 2024 11:10:28 AM (4 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r105520 r105561 1278 1278 } 1279 1279 case WizardType_CloneVD: 1280 m_wizards[enmType] = new UIWizard CloneVD(this, m_uMediumId);1280 m_wizards[enmType] = new UIWizardNewVD(this, m_uMediumId); 1281 1281 break; 1282 1282 default: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r105558 r105561 81 81 82 82 m_strDefaultPath = QDir::toNativeSeparators(QFileInfo(m_comSourceVirtualDisk.GetLocation()).absolutePath()); 83 m_strDefaultName = QString("%1_%2").arg( m_comSourceVirtualDisk.GetName()).arg(UIWizardNewVD::tr("copy"));83 m_strDefaultName = QString("%1_%2").arg(QFileInfo(m_comSourceVirtualDisk.GetName()).baseName()).arg(UIWizardNewVD::tr("copy")); 84 84 m_uDefaultSize = m_comSourceVirtualDisk.GetLogicalSize(); 85 85 m_enmDeviceType = m_comSourceVirtualDisk.GetDeviceType(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.cpp
r105554 r105561 158 158 pWizard->setMediumFormat(comMediumFormat); 159 159 160 161 160 QString strExtension = UIWizardDiskEditors::defaultExtension(comMediumFormat, pWizard->deviceType()); 162 161 QString strMediumFilePath = 163 162 UIWizardDiskEditors::constructMediumFilePath(UIWizardDiskEditors::appendExtension(pWizard->defaultName(), 164 163 strExtension), pWizard->defaultPath()); 165 166 167 168 164 m_pSizeAndPathGroup->blockSignals(true); 169 165 m_pSizeAndPathGroup->setMediumFilePath(strMediumFilePath); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDSizeLocationPage.cpp
r105554 r105561 52 52 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 53 53 AssertReturnVoid(pMainLayout); 54 m_pMediumSizePathGroup = new UIMediumSizeAndPathGroupBox(false /* fExpertMode */, 0 /* parent */, _4M /* minimum size */);54 m_pMediumSizePathGroup = new UIMediumSizeAndPathGroupBox(false /* fExpertMode */, 0 /* parent */, m_uMediumSizeMin); 55 55 connect(m_pMediumSizePathGroup, &UIMediumSizeAndPathGroupBox::sigMediumSizeChanged, 56 56 this, &UIWizardNewVDSizeLocationPage::sltMediumSizeChanged); … … 150 150 if (pWizard->mediumSize() > m_uMediumSizeMax || pWizard->mediumSize() < m_uMediumSizeMin) 151 151 return false; 152 if (!m_pMediumSizePathGroup->filePathUnique() || !m_pMediumSizePathGroup->pathExists()) 153 return false; 152 154 return true; 153 155 }
Note:
See TracChangeset
for help on using the changeset viewer.