details: Fix setting cache/io to hypervisor default

This commit is contained in:
Cole Robinson 2014-03-22 18:02:50 -04:00
parent f584135b78
commit 3da3a432e1
1 changed files with 3 additions and 3 deletions

View File

@ -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()