diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-22 18:02:50 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2014-03-22 18:02:50 -0400 |
commit | 3da3a432e1052f0fa5c9b94f8364f75d13d543a3 (patch) | |
tree | 58387e68d6b876ae04a9da1298dac79d27bc1c38 | |
parent | f584135b78b8df8eddce22b5a753d1caf037bd61 (diff) | |
download | virt-manager-3da3a432e1052f0fa5c9b94f8364f75d13d543a3.tar.gz |
details: Fix setting cache/io to hypervisor default
-rw-r--r-- | virtManager/uiutil.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/virtManager/uiutil.py b/virtManager/uiutil.py index bbad612f..364aaa7c 100644 --- a/virtManager/uiutil.py +++ b/virtManager/uiutil.py @@ -145,9 +145,9 @@ def get_combo_entry(combo, rowidx=0): Helper to get the value specified in a combo box, with or without and entry """ - ret = get_list_selection(combo, rowidx) - if ret: - return ret + row = get_list_selection(combo) + if row: + return row[rowidx] if not combo.get_has_entry(): return None return combo.get_child().get_text().strip() |