VirtualBox

Ignore:
Timestamp:
Feb 19, 2010 12:45:25 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57857
Message:

FE/Qt4: New running VM core: fix one assert.

File:
1 edited

Legend:

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

    r26637 r26647  
    5959        : UIAction(pParent, UIActionType_Simple)
    6060    {
    61         setIcon(VBoxGlobal::iconSet(strIcon.toLatin1().data(), strIconDis.toLatin1().data()));
     61        if (!strIcon.isNull())
     62            setIcon(VBoxGlobal::iconSet(strIcon.toLatin1().data(), strIconDis.toLatin1().data()));
    6263    }
    6364};
     
    7374        : UIAction(pParent, UIActionType_Toggle)
    7475    {
    75         setIcon(VBoxGlobal::iconSet(strIcon.toLatin1().data(), strIconDis.toLatin1().data()));
     76        if (!strIcon.isNull())
     77            setIcon(VBoxGlobal::iconSet(strIcon.toLatin1().data(), strIconDis.toLatin1().data()));
    7678        init();
    7779    }
     
    113115        : UIAction(pParent, UIActionType_Menu)
    114116    {
    115         setIcon(VBoxGlobal::iconSet(strIcon, strIconDis));
     117        if (!strIcon.isNull())
     118            setIcon(VBoxGlobal::iconSet(strIcon, strIconDis));
    116119        setMenu(new QMenu);
    117120    }
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