Changeset 23688 in vbox for trunk/src/VBox
- Timestamp:
- Oct 12, 2009 12:45:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSettingsDialogSpecific.cpp
r23685 r23688 407 407 #ifdef VBOX_WITH_VIDEOHWACCEL 408 408 /* Disable 2D Video Acceleration for non-Windows guests */ 409 if (!generalPage->isWindowsOSTypeSelected())409 if (generalPage && !generalPage->isWindowsOSTypeSelected()) 410 410 { 411 411 VBoxVMSettingsDisplay *displayPage = 412 412 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); 417 415 } 418 416 #endif … … 550 548 VBoxVMSettingsDisplay *displayPage = 551 549 qobject_cast <VBoxVMSettingsDisplay*> (mSelector->idToPage (DisplayId)); 552 if(displayPage->isAcceleration2DVideoSelected() && !generalPage->isWindowsOSTypeSelected()) 550 if (generalPage && displayPage && 551 displayPage->isAcceleration2DVideoSelected() && !generalPage->isWindowsOSTypeSelected()) 553 552 { 554 553 aWarning = tr (
Note:
See TracChangeset
for help on using the changeset viewer.