user-panel: Strip remote dbus error before showing error
* GDBus transfers dbus error codes in the error->message so strip that out before display https://bugzilla.gnome.org/show_bug.cgi?id=680889
This commit is contained in:
parent
e707b83dc5
commit
fb6833e57a
1 changed files with 5 additions and 2 deletions
|
@ -113,8 +113,11 @@ show_error_dialog (UmAccountDialog *self,
|
|||
GTK_BUTTONS_CLOSE,
|
||||
"%s", message);
|
||||
|
||||
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
|
||||
"%s", error->message);
|
||||
if (error != NULL) {
|
||||
g_dbus_error_strip_remote_error (error);
|
||||
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
|
||||
"%s", error->message);
|
||||
}
|
||||
|
||||
g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
|
||||
gtk_window_present (GTK_WINDOW (dialog));
|
||||
|
|
Loading…
Add table
Reference in a new issue