details: Fix handling failed 'unapplied changes'

The return values from config_apply were not consistent

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-08-27 13:01:01 -04:00
parent 138856c6df
commit 7d22f7b5dc
1 changed files with 3 additions and 2 deletions

View File

@ -1412,11 +1412,12 @@ class vmmDetails(vmmGObjectUI):
elif pagetype is HW_LIST_TYPE_VSOCK:
success = self.config_vsock_apply(dev)
except Exception as e:
return self.err.show_err(_("Error applying changes: %s") % e)
self.err.show_err(_("Error applying changes: %s") % e)
if success is not False:
self.disable_apply()
return True
success = True
return success
def get_text(self, widgetname, strip=True, checksens=False):
widget = self.widget(widgetname)