aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-05 20:41:13 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-11-05 21:34:58 +0800
commitcfa3f7aa8cc30c3a0056e2185e99a928460be568 (patch)
tree6bc11957d051a36c4ebf16c157bafb27c46ba735 /src/empathy-call-window.c
parent20777152d7bfeca11a1477e4b472e3a3606c9de9 (diff)
downloadgsoc2013-empathy-cfa3f7aa8cc30c3a0056e2185e99a928460be568.tar
gsoc2013-empathy-cfa3f7aa8cc30c3a0056e2185e99a928460be568.tar.gz
gsoc2013-empathy-cfa3f7aa8cc30c3a0056e2185e99a928460be568.tar.bz2
gsoc2013-empathy-cfa3f7aa8cc30c3a0056e2185e99a928460be568.tar.lz
gsoc2013-empathy-cfa3f7aa8cc30c3a0056e2185e99a928460be568.tar.xz
gsoc2013-empathy-cfa3f7aa8cc30c3a0056e2185e99a928460be568.tar.zst
gsoc2013-empathy-cfa3f7aa8cc30c3a0056e2185e99a928460be568.zip
use the error message if we don't have a nice description
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 8bbc9c391..e4c1b0025 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