VirtualBox

5 年 前 建立

4 年 前 結束

#19286 closed defect (fixed)

Filename changes incorrectly in the File location field when creating Virtual Hard Disk

回報者: rocket_ 負責人: gombara
元件: virtual disk 版本: VirtualBox 6.1.2
關鍵字: virtual disk, file location 副本:
Guest type: all Host type: Windows

描述

Hello, VirtualBox 6.1.2 r135662 (Qt5.6.2) under Windows 10 (1909) host. When creating new Virtual Hard Disk for virtual machine, there are path and filename set by default in File location field. Drive:\path\filename.vdi. If you click Hard disk file type radio button(s), the extension of the filename in File location field does not change, as expected; instead of that it appends to the old extension, every time you click on different file type radiobuttons (VHD, HDD, etc). Please see attached screenshot for understanding clearly.

附加檔案 (1)

VirtualBox 6.1.2 r135662 (Qt5.6.2) - Create, Hard disk file type clicking fail.png (32.9 KB ) - 5 年 前, 由 rocket_ 新增
Create Virtual Hard Disk window

下載所有附檔: .zip

更動歷史 (5)

5 年 前rocket_ 編輯

Create Virtual Hard Disk window

comment:1 5 年 前gombara 編輯

狀態: newassigned
負責人: 指定為 gombara

comment:2 4 年 前Antonio López Fernández 編輯

It would be extremely easy to solve this problem:

File: src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp
Line: 215
Change: fileInfo.completeBaseName() instead of fileInfo.fileName()

if (fileInfo.completeSuffix() != m_strDefaultExtension)
{
    QString strNewFilePath = QString("%1/%2.%3").arg(fileInfo.absoluteDir().absolutePath()).arg(fileInfo.completeBaseName()).arg(m_strDefaultExtension);
    m_pLocationEditor->setText(strNewFilePath);
}
最後由 Antonio López Fernández 編輯於 4 年 前 (上一筆) (差異)

comment:3 4 年 前gombara 編輯

This has been fixed in our development and 6.1 branch. The next release from 6.1 branch will have the fix.

comment:4 4 年 前gombara 編輯

狀態: assignedclosed
處理結果: fixed
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette