VirtualBox

Changeset 35133 in vbox


Ignore:
Timestamp:
Dec 15, 2010 1:32:39 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: Enable remember-last-folder property for open-medium-window by default.

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

Legend:

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

    r34961 r35133  
    594594
    595595    QString openMediumWithFileOpenDialog(VBoxDefs::MediumType mediumType, QWidget *pParent = 0,
    596                                          const QString &strDefaultFolder = QString(), bool fUseLastFolder = false);
     596                                         const QString &strDefaultFolder = QString(), bool fUseLastFolder = true);
    597597    QString openMedium(VBoxDefs::MediumType mediumType, QString strMediumLocation);
    598598
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r34983 r35133  
    13301330        QString strMachineFolder(QFileInfo(machine.GetSettingsFilePath()).absolutePath());
    13311331        QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(target.type, defaultMachineWindow()->machineWindow(),
    1332                                                                         strMachineFolder, true);
     1332                                                                        strMachineFolder);
    13331333        defaultMachineWindow()->machineView()->setFocus();
    13341334        if (!strMediumId.isNull())
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r34961 r35133  
    24632463{
    24642464        QString strMachineFolder(QFileInfo(m_machine.GetSettingsFilePath()).absolutePath());
    2465     QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(m_pMediumIdHolder->type(), this, strMachineFolder, true);
     2465    QString strMediumId = vboxGlobal().openMediumWithFileOpenDialog(m_pMediumIdHolder->type(), this, strMachineFolder);
    24662466    if (!strMediumId.isNull())
    24672467        m_pMediumIdHolder->setId(strMediumId);
Note: See TracChangeset for help on using the changeset viewer.

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