fix to checking whether vm has kernel attributes

This commit is contained in:
Agnieszka Kostrzewa 2012-04-24 12:52:47 +02:00
parent 4d620b0904
commit a5a6e90e41

View File

@ -432,6 +432,9 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
return;
#kernel changed
if not self.kernel_groupbox.isVisible():
return
if self.kernel.currentIndex() != self.kernel_idx:
new_kernel = self.kernel.currentText()
new_kernel = new_kernel.split(' ')[0]
@ -448,6 +451,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
self.vm.kernel = kernel
self.anything_changed = True
######## devices tab
def __init_devices_tab__(self):
self.dev_list = MultiSelectWidget(self)