]> 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 f00139be23062d0fbe61284b1bceb6710cde0da7..dbba3b46b92c0343d32c3fe8d97792ebb5eabd32 100644 (file)
@@ -1110,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;