VirtualBox

Changeset 48277 in vbox


Ignore:
Timestamp:
Sep 4, 2013 4:49:41 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: VBoxGlobal: Small medium-details logic fix.

File:
1 edited

Legend:

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

    r48269 r48277  
    964964{
    965965    /* Search for corresponding UI medium: */
    966     UIMedium uimedium = cmedium.isNull() ? UIMedium() : medium(cmedium.GetId());
     966    const QString strMediumID = cmedium.isNull() ? UIMedium::nullID() : cmedium.GetId();
     967    UIMedium uimedium = medium(strMediumID);
    967968    if (!cmedium.isNull() && uimedium.isNull())
    968969    {
    969         /* UI medium may be new and not in medium-list, request enumeration: */
     970        /* UI medium may be new and not among our mediums, request enumeration: */
    970971        startMediumEnumeration();
    971972
    972973        /* Search for corresponding UI medium again: */
    973         uimedium = medium(cmedium.GetId());
     974        uimedium = medium(strMediumID);
    974975        if (uimedium.isNull())
    975976        {
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