diff options
author | Cole Robinson <crobinso@redhat.com> | 2013-09-09 10:50:56 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2013-12-05 15:52:30 -0500 |
commit | 766b9fb2addd40811ace0c2fd88fa2a13cee35af (patch) | |
tree | c19f3e1cf8b3d0de7667334a7bb66a7a25781717 | |
parent | 849ae3a4646338dc0ae6067660e5c6b441891da3 (diff) | |
download | virt-manager-766b9fb2addd40811ace0c2fd88fa2a13cee35af.tar.gz |
addhw: disk cache default should be 'default' not 'none'
(cherry picked from commit b6c078ad75684eae3b563c4f8f8ab965a57fdd78)
-rw-r--r-- | virtManager/uihelpers.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/virtManager/uihelpers.py b/virtManager/uihelpers.py index ff254ab8..52180c95 100644 --- a/virtManager/uihelpers.py +++ b/virtManager/uihelpers.py @@ -344,7 +344,7 @@ def populate_netmodel_combo(vm, combo): model.append([m, m]) -def build_cache_combo(vm, combo, no_default=False): +def build_cache_combo(vm, combo): ignore = vm dev_model = Gtk.ListStore(str, str) combo.set_model(dev_model) @@ -357,9 +357,8 @@ def build_cache_combo(vm, combo, no_default=False): for m in virtinst.VirtualDisk.cache_types: dev_model.append([m, m]) - if not no_default: - dev_model.append([None, "default"]) - combo.set_active(0) + dev_model.append([None, "default"]) + combo.set_active(len(dev_model) - 1) def build_io_combo(vm, combo, no_default=False): |