From 7f6700bbe5dfb1ec4f6ffe278613d56d42bfb328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 16 Feb 2014 21:56:55 +0100 Subject: [PATCH] Fix global settings save --- qubesmanager/global_settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qubesmanager/global_settings.py b/qubesmanager/global_settings.py index 0efd90c..4854401 100644 --- a/qubesmanager/global_settings.py +++ b/qubesmanager/global_settings.py @@ -132,7 +132,7 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog): def __apply_system_defaults__(self): #upatevm if self.update_vm_combo.currentIndex() != self.updatevm_idx: - updatevm_name = self.update_vm_combo.currentText() + updatevm_name = str(self.update_vm_combo.currentText()) updatevm_name = updatevm_name.split(' ')[0] updatevm = self.qvm_collection.get_vm_by_name(updatevm_name) @@ -141,7 +141,7 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog): #clockvm if self.clock_vm_combo.currentIndex() != self.clockvm_idx: - clockvm_name = self.clock_vm_combo.currentText() + clockvm_name = str(self.clock_vm_combo.currentText()) clockvm_name = clockvm_name.split(' ')[0] clockvm = self.qvm_collection.get_vm_by_name(clockvm_name) @@ -150,7 +150,7 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog): #default netvm if self.default_netvm_combo.currentIndex() != self.netvm_idx: - name = self.default_netvm_combo.currentText() + name = str(self.default_netvm_combo.currentText()) name = name.split(' ')[0] vm = self.qvm_collection.get_vm_by_name(name) @@ -159,7 +159,7 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog): #default template if self.default_template_combo.currentIndex() != self.template_idx: - name = self.default_template_combo.currentText() + name = str(self.default_template_combo.currentText()) name = name.split(' ')[0] vm = self.qvm_collection.get_vm_by_name(name) @@ -184,7 +184,7 @@ class GlobalSettingsWindow(Ui_GlobalSettings, QDialog): def __apply_kernel_defaults__(self): if self.default_kernel_combo.currentIndex() != self.kernel_idx: - kernel = self.default_kernel_combo.currentText() + kernel = str(self.default_kernel_combo.currentText()) kernel = kernel.split(' ')[0] self.qvm_collection.set_default_kernel(kernel)