VirtualBox

Changeset 77189 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 6, 2019 8:47:57 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128678
Message:

FE/Qt: bugref:9340. Use correct machine folder path.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r77188 r77189  
    27502750    if (pDialog->exec())
    27512751    {
     2752        delete pDialog;
    27522753        return pDialog->mediumID();
    27532754    }
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp

    r77186 r77189  
    7676    , m_pSearchWidget(0)
    7777    , m_iCurrentShownIndex(0)
    78     , m_strMachineSettingsFilePath(machineSettingsFilePath)
     78    , m_strMachineFolder(machineSettingsFilePath)
    7979    , m_strMachineName(machineName)
    8080    , m_strMachineGuestOSTypeId(strMachineGuestOSTypeId)
     
    438438
    439439    if (m_enmMediumType == UIMediumDeviceType_Floppy)
    440         uMediumId = vboxGlobal().showCreateFloppyDiskDialog(this, m_strMachineName, m_strMachineSettingsFilePath);
     440        uMediumId = vboxGlobal().showCreateFloppyDiskDialog(this, m_strMachineName, m_strMachineFolder);
    441441    else if (m_enmMediumType == UIMediumDeviceType_HardDisk)
    442         uMediumId = vboxGlobal().createHDWithNewHDWizard(this, m_strMachineGuestOSTypeId, m_strMachineSettingsFilePath);
     442        uMediumId = vboxGlobal().createHDWithNewHDWizard(this, m_strMachineGuestOSTypeId, m_strMachineFolder);
    443443    else if (m_enmMediumType == UIMediumDeviceType_DVD)
    444         uMediumId = vboxGlobal().createVisoMediumWithVisoCreator(this, m_strMachineName, m_strMachineSettingsFilePath);
     444        uMediumId = vboxGlobal().createVisoMediumWithVisoCreator(this, m_strMachineName, m_strMachineFolder);
    445445
    446446    if (!uMediumId.isNull())
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.h

    r77186 r77189  
    146146    int                   m_iCurrentShownIndex;
    147147    QBrush                m_defaultItemForeground;
    148     QString               m_strMachineSettingsFilePath;
     148    QString               m_strMachineFolder;
    149149    QString               m_strMachineName;
    150150    QString               m_strMachineGuestOSTypeId;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r77186 r77189  
    38003800    QUuid uMediumId;
    38013801    int iAnswer = static_cast<int>(UIMediumSelector::ReturnCode_Rejected);
     3802
    38023803    switch (enmDevice)
    38033804    {
     
    38053806        {
    38063807            iAnswer = vboxGlobal().openMediumSelectorDialog(this, UIMediumDeviceType_HardDisk, uMediumId,
    3807                                                             m_strMachineName, m_strMachineSettingsFilePath,
     3808                                                            m_strMachineName, strMachineFolder,
    38083809                                                            m_strMachineGuestOSTypeId);
    38093810            break;
     
    38123813        {
    38133814            iAnswer = vboxGlobal().openMediumSelectorDialog(this, UIMediumDeviceType_DVD, uMediumId,
    3814                                                             m_strMachineName, m_strMachineSettingsFilePath);
     3815                                                            m_strMachineName, strMachineFolder);
    38153816            break;
    38163817        }
     
    38183819        {
    38193820            iAnswer = vboxGlobal().openMediumSelectorDialog(this, UIMediumDeviceType_Floppy, uMediumId,
    3820                                                             m_strMachineName, m_strMachineSettingsFilePath);
     3821                                                            m_strMachineName, strMachineFolder);
    38213822        }
    38223823        default: break; /* Shut up, MSC! */
Note: See TracChangeset for help on using the changeset viewer.

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