Simplified vm name setting.

This commit is contained in:
Agnieszka Kostrzewa 2012-03-12 22:12:00 +01:00
parent b77cc2ca89
commit f155ef5780

View File

@ -277,9 +277,7 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
else:
oldname = self.vm.name
try:
self.vm.pre_rename(vmname)
self.vm.set_name(vmname)
self.vm.post_rename(oldname)
self.anything_changed = True
except Exception as ex:
msg.append(str(ex))