From 56d7807fecf05aa01dc64bde0d441522029aa9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 29 Oct 2013 13:39:14 +0100 Subject: [PATCH] settings: gray out maxmem when qmemman is disabled 'Max memory' setting only makes sense for dynamic memory management. --- qubesmanager/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index b72fd47..0cfe69b 100755 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -427,6 +427,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): self.include_in_balancing.setEnabled(True) self.include_in_balancing.setChecked(self.vm.services['meminfo-writer']==True) + self.max_mem_size.setEnabled(self.include_in_balancing.isChecked()) if self.vm.type == "HVM": self.include_in_balancing.setChecked(False) self.include_in_balancing.setEnabled(False) @@ -611,6 +612,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog): else: self.dmm_warning_adv.hide() self.dmm_warning_dev.hide() + self.max_mem_size.setEnabled(self.include_in_balancing.isChecked()) def devices_selection_changed(self): if self.include_in_balancing.isChecked():