VirtualBox

Changeset 23688 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 12, 2009 12:45:58 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: Coding-style fix for r53400.

File:
1 edited

Legend:

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

    r23685 r23688  
    407407#ifdef VBOX_WITH_VIDEOHWACCEL
    408408    /* Disable 2D Video Acceleration for non-Windows guests */
    409     if(!generalPage->isWindowsOSTypeSelected())
     409    if (generalPage && !generalPage->isWindowsOSTypeSelected())
    410410    {
    411411        VBoxVMSettingsDisplay *displayPage =
    412412            qobject_cast <VBoxVMSettingsDisplay*> (mSelector->idToPage (DisplayId));
    413         if(displayPage->isAcceleration2DVideoSelected())
    414         {
    415             mMachine.SetAccelerate2DVideoEnabled(false);
    416         }
     413        if (displayPage && displayPage->isAcceleration2DVideoSelected())
     414            mMachine.SetAccelerate2DVideoEnabled (false);
    417415    }
    418416#endif
     
    550548        VBoxVMSettingsDisplay *displayPage =
    551549            qobject_cast <VBoxVMSettingsDisplay*> (mSelector->idToPage (DisplayId));
    552         if(displayPage->isAcceleration2DVideoSelected() && !generalPage->isWindowsOSTypeSelected())
     550        if (generalPage && displayPage &&
     551            displayPage->isAcceleration2DVideoSelected() && !generalPage->isWindowsOSTypeSelected())
    553552        {
    554553            aWarning = tr (
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