VirtualBox

Ignore:
Timestamp:
Sep 17, 2015 4:09:23 PM (9 years ago)
Author:
vboxsync
Message:

Installer/linux and tinderclient: use Qt from build server for RPM builds - changed the wrong line in tinderclient.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r57785 r57808  
    112112UIMenu* UIAction::menu() const
    113113{
    114     return qobject_cast<UIMenu*>(QAction::menu());
     114    return QAction::menu() ? qobject_cast<UIMenu*>(QAction::menu()) : NULL;
    115115}
    116116
    117117UIActionPolymorphic* UIAction::toActionPolymorphic()
    118118{
    119     return qobject_cast<UIActionPolymorphic*>(this);
     119    return this ? qobject_cast<UIActionPolymorphic*>(this) : NULL;
    120120}
    121121
    122122UIActionPolymorphicMenu* UIAction::toActionPolymorphicMenu()
    123123{
    124     return qobject_cast<UIActionPolymorphicMenu*>(this);
     124    return this ? qobject_cast<UIActionPolymorphicMenu*>(this) : NULL;
    125125}
    126126
     
    890890UIActionPoolRuntime* UIActionPool::toRuntime()
    891891{
    892     return qobject_cast<UIActionPoolRuntime*>(this);
     892    return this ? qobject_cast<UIActionPoolRuntime*>(this) : NULL;
    893893}
    894894
    895895UIActionPoolSelector* UIActionPool::toSelector()
    896896{
    897     return qobject_cast<UIActionPoolSelector*>(this);
     897    return this ? qobject_cast<UIActionPoolSelector*>(this) : NULL;
    898898}
    899899
     
    959959{
    960960    /* Make sure menu is valid: */
     961    AssertPtrReturnVoid(sender());
    961962    UIMenu *pMenu = qobject_cast<UIMenu*>(sender());
    962     AssertPtrReturnVoid(pMenu);
    963963    /* Make sure action is valid: */
     964    AssertPtrReturnVoid(pMenu->menuAction());
    964965    UIAction *pAction = qobject_cast<UIAction*>(pMenu->menuAction());
    965     AssertPtrReturnVoid(pAction);
    966966
    967967    /* Determine action index: */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStack.cpp

    r55436 r57808  
    314314{
    315315    /* Menu-bar can exist only on QMainWindow sub-class: */
    316     if (QMainWindow *pMainWindow = qobject_cast<QMainWindow*>(pParent))
    317     {
     316    if (pParent)
     317    {
     318        QMainWindow *pMainWindow = qobject_cast<QMainWindow*>(pParent);
     319
    318320        /* Search for existing menu-bar child: */
    319321        if (QMenuBar *pMenuBar = pMainWindow->findChild<QMenuBar*>())
     
    328330{
    329331    /* Status-bar can exist only on QMainWindow sub-class: */
    330     if (QMainWindow *pMainWindow = qobject_cast<QMainWindow*>(pParent))
    331     {
     332    if (pParent)
     333    {
     334        QMainWindow *pMainWindow = qobject_cast<QMainWindow*>(pParent);
     335
    332336        /* Search for existing status-bar child: */
    333337        if (QStatusBar *pStatusBar = pMainWindow->findChild<QStatusBar*>())
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