VirtualBox

Changeset 86739 in vbox


Ignore:
Timestamp:
Oct 28, 2020 4:02:34 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141130
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Logic fix for r141119, cloud machine is represented by id, not name.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r86734 r86739  
    355355UICloudEntityKey::UICloudEntityKey(const QString &strProviderShortName /* = QString() */,
    356356                                   const QString &strProfileName /* = QString() */,
    357                                    const QString &strMachineName /* = QString() */)
     357                                   const QUuid &uMachineId /* = QUuid() */)
    358358    : m_strProviderShortName(strProviderShortName)
    359359    , m_strProfileName(strProfileName)
    360     , m_strMachineName(strMachineName)
     360    , m_uMachineId(uMachineId)
    361361{
    362362}
     
    365365    : m_strProviderShortName(another.m_strProviderShortName)
    366366    , m_strProfileName(another.m_strProfileName)
    367     , m_strMachineName(another.m_strMachineName)
     367    , m_uMachineId(another.m_uMachineId)
    368368{
    369369}
     
    374374           && m_strProviderShortName == another.m_strProviderShortName
    375375           && m_strProfileName == another.m_strProfileName
    376            && m_strProfileName == another.m_strProfileName
     376           && m_uMachineId == another.m_uMachineId
    377377              ;
    378378}
     
    387387        return strResult;
    388388    strResult += QString("/%1").arg(m_strProfileName);
    389     if (m_strMachineName.isEmpty())
     389    if (m_uMachineId.isNull())
    390390        return strResult;
    391     strResult += QString("/%1").arg(m_strMachineName);
     391    strResult += QString("/%1").arg(m_uMachineId.toString());
    392392    return strResult;
    393393}
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.h

    r86734 r86739  
    4747      * @param  strProviderShortName  Brings provider short name.
    4848      * @param  strProfileName        Brings profile name.
    49       * @param  strMachineName        Brings machine name. */
     49      * @param  uMachineId            Brings machine id. */
    5050    UICloudEntityKey(const QString &strProviderShortName = QString(),
    5151                     const QString &strProfileName = QString(),
    52                      const QString &strMachineName = QString());
     52                     const QUuid &uMachineId = QUuid());
    5353    /** Constructs cloud entity key on the basis of @a another one. */
    5454    UICloudEntityKey(const UICloudEntityKey &another);
     
    6464    /** Holds profile name. */
    6565    QString m_strProfileName;
    66     /** Holds machine name. */
    67     QString m_strMachineName;
     66    /** Holds machine id. */
     67    QUuid m_uMachineId;
    6868};
    6969
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