VirtualBox

Changeset 76737 in vbox for trunk/src


Ignore:
Timestamp:
Jan 9, 2019 1:40:57 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9080: Passing the iso name to ad-hoc.viso file

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

Legend:

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

    r76690 r76737  
    27252725    {
    27262726        QStringList files = pVisoCreator->entryList();
     2727        QString strVisoName = pVisoCreator->visoName();
    27272728        if (files.empty() || files[0].isEmpty())
    27282729            return QUuid();
     
    27422743                {
    27432744                    RTStrmPrintf(pStrmViso, "--iprt-iso-maker-file-marker-bourne-sh %RTuuid\n", &Uuid);
     2745                    if (!strVisoName.isEmpty())
     2746                        RTStrmPrintf(pStrmViso, "--volume-id=%s\n", strVisoName.toUtf8().constData());
    27442747
    27452748                    for (int iFile = 0; iFile < files.size(); iFile++)
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r76730 r76737  
    5252}
    5353
    54 QStringList UIVisoCreator::entryList()
     54QStringList UIVisoCreator::entryList() const
    5555{
    5656    if (!m_pVisoBrowser)
    5757        return QStringList();
    5858    return m_pVisoBrowser->entryList();
     59}
     60
     61const QString &UIVisoCreator::visoName() const
     62{
     63    return m_visoOptions.m_strVisoName;
    5964}
    6065
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h

    r76690 r76737  
    5353    UIVisoCreator(QWidget *pParent = 0);
    5454    ~UIVisoCreator();
    55     QStringList entryList();
     55    QStringList entryList() const;
     56    const QString &visoName() const;
    5657
    5758#ifdef VBOX_WS_MAC
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