details: Tweak hotplug error dialog buttons

This commit is contained in:
Cole Robinson
2010-12-08 13:05:38 -05:00
parent 324e3cf1ed
commit 59b69f0a51
2 changed files with 4 additions and 3 deletions

View File

@@ -1606,6 +1606,7 @@ class vmmDetails(gobject.GObject):
_("Device could not be removed from the running machine"),
detach_err[0] + "\n\n" + detach_err[1],
text2=_("This change will take effect after the next VM reboot."),
buttons=gtk.BUTTONS_OK,
dialog_type=gtk.MESSAGE_INFO)
# Generic config change helpers
@@ -1679,7 +1680,7 @@ class vmmDetails(gobject.GObject):
hotplug_msg += (err1 + "\n\n" + tb + "\n")
self.err.show_err(msg, details=hotplug_msg,
buttons=gtk.BUTTONS_YES_NO,
buttons=gtk.BUTTONS_OK,
dialog_type=dtype)
return True

View File

@@ -63,7 +63,7 @@ class vmmErrorDialog (object):
buttons=gtk.BUTTONS_CLOSE,
text2=None):
if debug:
logging.debug("Uncaught Error: %s : %s" % (summary, details))
logging.debug("dialog message: %s : %s" % (summary, details))
dialog = _errorDialog(parent=self.get_parent(),
type=dialog_type, buttons=buttons)
@@ -205,7 +205,7 @@ class _errorDialog (gtk.MessageDialog):
if details:
self.buffer.set_text(details)
title = title or _("Error")
title = title or ""
self.buf_expander.show()
if chktext: