VirtualBox

Changeset 44111 in vbox for trunk/src


Ignore:
Timestamp:
Dec 12, 2012 4:10:07 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82660
Message:

FE/Qt: 5744: Do not fetch UIMedium usage for not yet registered machines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp

    r41819 r44111  
    202202            {
    203203                CMachine machine = vbox.FindMachine(*it);
     204
     205                /* UIMedium object can wrap newly created CMedium object which belongs to
     206                 * not yet registered machine, like while creating VM clone.
     207                 * We can skip such a machines in usage string.
     208                 * CVirtualBox::FindMachine() will return null machine for such case. */
     209                if (machine.isNull())
     210                    continue;
    204211
    205212                QString sName = machine.GetName();
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