VirtualBox

Opened 4 years ago

Closed 4 years ago

#19286 closed defect (fixed)

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

Reported by: rocket_ Owned by: gombara
Component: virtual disk Version: VirtualBox 6.1.2
Keywords: virtual disk, file location Cc:
Guest type: all Host type: Windows

Description

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.

Attachments (1)

VirtualBox 6.1.2 r135662 (Qt5.6.2) - Create, Hard disk file type clicking fail.png (32.9 KB ) - added by rocket_ 4 years ago.
Create Virtual Hard Disk window

Download all attachments as: .zip

Change History (5)

by rocket_, 4 years ago

Create Virtual Hard Disk window

comment:1 by gombara, 4 years ago

Owner: set to gombara
Status: newassigned

comment:2 by Antonio López Fernández, 4 years ago

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);
}
Last edited 3 years ago by Antonio López Fernández (previous) (diff)

comment:3 by gombara, 4 years ago

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

comment:4 by gombara, 4 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use