From 03c04cc93bf11198269ee3bd513ae2e2f72702c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Tue, 14 Jul 2020 22:20:54 +0200 Subject: [PATCH] Fixed deprecated implicit conversion to int --- qubesmanager/global_settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesmanager/global_settings.py b/qubesmanager/global_settings.py index 9ceb160..33316a6 100644 --- a/qubesmanager/global_settings.py +++ b/qubesmanager/global_settings.py @@ -269,8 +269,8 @@ class GlobalSettingsWindow(ui_globalsettingsdlg.Ui_GlobalSettings, self.vm_min_mem_val = parse_size(self.vm_min_mem_val) self.dom0_mem_boost_val = parse_size(self.dom0_mem_boost_val) - self.min_vm_mem.setValue(self.vm_min_mem_val / 1024 / 1024) - self.dom0_mem_boost.setValue(self.dom0_mem_boost_val / 1024 / 1024) + self.min_vm_mem.setValue(int(self.vm_min_mem_val / 1024 / 1024)) + self.dom0_mem_boost.setValue(int(self.dom0_mem_boost_val / 1024 / 1024)) def __apply_mem_defaults__(self):