VirtualBox

Changeset 92360 in vbox


Ignore:
Timestamp:
Nov 11, 2021 11:15:38 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10141. A small refactoring

File:
1 edited

Legend:

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

    r92352 r92360  
    17471747                                                  const QString &strMachineName /* = QString */)
    17481748{
    1749     QString strVisoSaveFolder(strDefaultFolder);
    1750     if (strVisoSaveFolder.isEmpty())
    1751         strVisoSaveFolder = defaultFolderPathForType(UIMediumDeviceType_DVD);
    1752 
    17531749    QWidget *pDialogParent = windowManager().realParentWindow(pParent);
    17541750    UIVisoCreatorDialog *pVisoCreator = 0;//new UIVisoCreatorDialog(pDialogParent, strMachineName);
     
    17771773        char szVisoPath[RTPATH_MAX];
    17781774        QString strFileName = QString("%1%2").arg(strVisoName).arg(".viso");
     1775
     1776        QString strVisoSaveFolder(strDefaultFolder);
     1777        if (strVisoSaveFolder.isEmpty())
     1778            strVisoSaveFolder = defaultFolderPathForType(UIMediumDeviceType_DVD);
     1779
    17791780        int vrc = RTPathJoin(szVisoPath, sizeof(szVisoPath), strVisoSaveFolder.toUtf8().constData(), strFileName.toUtf8().constData());
    17801781        if (RT_SUCCESS(vrc))
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