- Timestamp:
- Feb 2, 2024 5:05:14 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r102972 r103179 214 214 bool UIMachineSettingsSystem::isNestedPagingEnabled() const 215 215 { 216 return m_pEditorAccelerationFeatures->isEnabledNestedPaging(); 216 return m_pEditorAccelerationFeatures 217 ? m_pEditorAccelerationFeatures->isEnabledNestedPaging() 218 : m_pCache->base().m_fEnabledNestedPaging; 217 219 } 218 220 … … 647 649 /* Polish 'Acceleration' availability: */ 648 650 m_pEditorParavirtProvider->setEnabled(isMachineOffline()); 649 m_pEditorAccelerationFeatures->setEnabled(isMachineOffline()); 650 m_pEditorAccelerationFeatures->setEnableNestedPagingAvailable( (systemData.m_fSupportedNestedPaging && isMachineOffline()) 651 || (systemData.m_fEnabledNestedPaging && isMachineOffline())); 651 if (m_pEditorAccelerationFeatures) 652 { 653 m_pEditorAccelerationFeatures->setEnabled(isMachineOffline()); 654 m_pEditorAccelerationFeatures->setEnableNestedPagingAvailable( (systemData.m_fSupportedNestedPaging && isMachineOffline()) 655 || (systemData.m_fEnabledNestedPaging && isMachineOffline())); 656 } 652 657 } 653 658 … … 836 841 837 842 /* Prepare acceleration features editor: */ 843 #ifndef VBOX_WITH_VIRT_ARMV8 838 844 m_pEditorAccelerationFeatures = new UIAccelerationFeaturesEditor(m_pTabAcceleration); 845 #endif 839 846 if (m_pEditorAccelerationFeatures) 840 847 { … … 872 879 873 880 /* Configure 'Acceleration' connections: */ 874 connect(m_pEditorAccelerationFeatures, &UIAccelerationFeaturesEditor::sigChangedNestedPaging, 875 this, &UIMachineSettingsSystem::revalidate); 881 if (m_pEditorAccelerationFeatures) 882 connect(m_pEditorAccelerationFeatures, &UIAccelerationFeaturesEditor::sigChangedNestedPaging, 883 this, &UIMachineSettingsSystem::revalidate); 876 884 } 877 885
Note:
See TracChangeset
for help on using the changeset viewer.