VirtualBox

Changeset 98937 in vbox for trunk


Ignore:
Timestamp:
Mar 13, 2023 3:30:45 PM (19 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: A bit of sanity check for UIIconPool.

File:
1 edited

Legend:

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

    r98103 r98937  
    539539QIcon UIIconPoolGeneral::userMachineIcon(const CMachine &comMachine) const
    540540{
     541    /* Make sure machine is not NULL: */
     542    AssertReturn(comMachine.isNotNull(), QIcon());
     543
    541544    /* Get machine ID: */
    542545    const QUuid uMachineId = comMachine.GetId();
    543     AssertReturn(comMachine.isOk(), QPixmap());
     546    AssertReturn(comMachine.isOk(), QIcon());
    544547
    545548    /* Prepare icon: */
     
    627630{
    628631    /* Prepare fallback icon: */
    629     static QPixmap nullIcon;
     632    static QPixmap nullIcon(":/os_other.png");
    630633
    631634    /* If we do NOT have that 'guest OS type' icon cached already: */
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