mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
details: Tweak hotplug error dialog buttons
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user