VirtualBox

Changeset 33683 in vbox


Ignore:
Timestamp:
Nov 2, 2010 12:14:28 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: remove annoying assertion in virtual media manager which is triggered every time a parent cannot be found, which CAN happen

File:
1 edited

Legend:

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

    r33669 r33683  
    15601560    if (parent.isNull())
    15611561    {
    1562         item = new MediaItem (aTree, aMedium, this);
     1562        item = new MediaItem(aTree, aMedium, this);
    15631563    }
    15641564    else
    15651565    {
    15661566        MediaItem *root = searchItem (aTree, parent.GetId());
    1567         AssertReturn (root, 0);
    1568         item = new MediaItem (root, aMedium, this);
     1567        if (root)
     1568            item = new MediaItem(root, aMedium, this);
     1569        else
     1570            item = new MediaItem(aTree, aMedium, this);
    15691571    }
    15701572
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