[empathy] use the error message if we don't have a nice description
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] use the error message if we don't have a nice description
- Date: Thu, 5 Nov 2009 13:36:00 +0000 (UTC)
commit cfa3f7aa8cc30c3a0056e2185e99a928460be568
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Nov 5 12:41:13 2009 +0000
use the error message if we don't have a nice description
src/empathy-call-window.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 8bbc9c3..e4c1b00 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1536,10 +1536,16 @@ empathy_call_window_stream_error (EmpathyCallWindow *self,
desc = media_stream_error_to_txt (self, code);
if (desc == NULL)
- return;
-
- display_error (self, icon, title, desc);
- g_free (desc);
+ {
+ /* No description, use the error message. That's not great as it's not
+ * localized but it's better than nothing. */
+ display_error (self, icon, title, msg);
+ }
+ else
+ {
+ display_error (self, icon, title, desc);
+ g_free (desc);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]