Fix regression where going offline was overwriting the saved status message
authorDavyd Madeley <davyd@madeley.id.au>
Fri, 10 Apr 2009 16:54:42 +0000 (16:54 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 10 Apr 2009 16:54:42 +0000 (16:54 +0000)
From: Davyd Madeley <davyd@madeley.id.au>

svn path=/trunk/; revision=2794

libempathy-gtk/empathy-presence-chooser.c

index 4ab17d3be8ee3328f6564c55b7a933d77c3e7869..bfdc20a17886f47ddeac5f9bffc1f25c8b47dcfb 100644 (file)
@@ -698,11 +698,12 @@ presence_chooser_presence_changed_cb (EmpathyPresenceChooser *chooser)
 
        if (match)
        {
+               priv->block_changed++;
                gtk_combo_box_set_active_iter (GTK_COMBO_BOX (chooser), &iter);
+               priv->block_changed--;
        }
        else
        {
-               // FIXME - do we insert the match into the menu?
                ui_set_custom_state (chooser, state, status);
        }