VirtualBox

Ignore:
Timestamp:
Feb 5, 2019 1:15:00 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128638
Message:

FE/Qt: bugref:9080. Make sure viso file name is in sync with viso image name.

File:
1 edited

Legend:

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

    r77001 r77163  
    26482648        QStringList files = pVisoCreator->entryList();
    26492649        QString strVisoName = pVisoCreator->visoName();
     2650        if (strVisoName.isEmpty())
     2651            strVisoName = "ad-hoc";
    26502652
    26512653        if (files.empty() || files[0].isEmpty())
     
    26562658        /* Produce the VISO. */
    26572659        char szVisoPath[RTPATH_MAX];
    2658         int vrc = RTPathJoin(szVisoPath, sizeof(szVisoPath), strFolder.toUtf8().constData(), "ad-hoc.viso");
     2660        QString strFileName = QString("%1%2").arg(strVisoName).arg(".viso");
     2661        int vrc = RTPathJoin(szVisoPath, sizeof(szVisoPath), strFolder.toUtf8().constData(), strFileName.toUtf8().constData());
    26592662        if (RT_SUCCESS(vrc))
    26602663        {
     
    26682671                {
    26692672                    RTStrmPrintf(pStrmViso, "--iprt-iso-maker-file-marker-bourne-sh %RTuuid\n", &Uuid);
    2670                     if (!strVisoName.isEmpty())
    2671                         RTStrmPrintf(pStrmViso, "--volume-id=%s\n", strVisoName.toUtf8().constData());
     2673                    RTStrmPrintf(pStrmViso, "--volume-id=%s\n", strVisoName.toUtf8().constData());
    26722674
    26732675                    for (int iFile = 0; iFile < files.size(); iFile++)
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