]> git.0d.be Git - empathy.git/blobdiff - src/empathy-main-window.c
Display an error message if reason is != _REQUESTED instead of >
[empathy.git] / src / empathy-main-window.c
index 920840cad997437c9a59cd3b2815b567560e8694..dbba3b46b92c0343d32c3fe8d97792ebb5eabd32 100644 (file)
@@ -356,7 +356,8 @@ main_window_row_activated_cb (EmpathyContactListView *view,
                        DEBUG ("Activate event");
                        empathy_event_activate (event);
 
-                       /* We don't want the default handler of this signal */
+                       /* We don't want the default handler of this signal
+                        * (e.g. open a chat) */
                        g_signal_stop_emission_by_name (view, "row-activated");
                        break;
                }
@@ -1109,10 +1110,13 @@ main_window_status_changed_cb (MissionControl           *mc,
        account = mc_account_lookup (unique_name);
 
        if (status == TP_CONNECTION_STATUS_DISCONNECTED &&
-           reason > TP_CONNECTION_STATUS_REASON_REQUESTED) {
+           reason != TP_CONNECTION_STATUS_REASON_REQUESTED) {
                const gchar *message;
 
                switch (reason) {
+               case TP_CONNECTION_STATUS_REASON_NONE_SPECIFIED:
+                       message = _("No error specified");
+                       break;
                case TP_CONNECTION_STATUS_REASON_NETWORK_ERROR:
                        message = _("Network error");
                        break;