diff options
-rw-r--r-- | src/empathy-debug-window.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c index ac0bf9a91..79e4d2ad1 100644 --- a/src/empathy-debug-window.c +++ b/src/empathy-debug-window.c @@ -1334,6 +1334,15 @@ debug_window_clear_clicked_cb (GtkToolButton *clear_button, GtkTreeIter iter; GtkListStore *active_buffer; + /* "All" is the first choice in the service chooser and it's buffer is + * not saved in the service-store but is accessed using a private + * reference */ + if (gtk_combo_box_get_active (GTK_COMBO_BOX (priv->chooser)) == 0) + { + gtk_list_store_clear (priv->all_active_buffer); + return; + } + gtk_combo_box_get_active_iter (GTK_COMBO_BOX (priv->chooser), &iter); gtk_tree_model_get (GTK_TREE_MODEL (priv->service_store), &iter, COL_ACTIVE_BUFFER, &active_buffer, -1); |