preferences: Correct usbredir preference values

All of the gsettings values of the "prefs-add-spice-usbredir" combo box
result in the preference being set to true, causing all new VMs to have
USB redirection added. This commit corrects the value of the "No" row to
correctly disable the setting when selected.

Signed-off-by: Dustin C. Hatch <dustin@hatch.name>
This commit is contained in:
Dustin C. Hatch 2015-02-20 14:14:31 -06:00 committed by Cole Robinson
parent 606069b1f4
commit 7acbdd9bf3

View File

@ -141,7 +141,7 @@ class vmmPreferences(vmmGObjectUI):
model = Gtk.ListStore(str, str)
for row in [["system", _("System default (%s)") %
self.config.default_add_spice_usbredir],
["yes", "Yes"], ["Yes", "no"]]:
["yes", "Yes"], ["no", "No"]]:
model.append(row)
combo.set_model(model)
uiutil.set_combo_text_column(combo, 1)