Blame SOURCES/0049-gui-clear-the-sensitive-cache-between-two-event-runs.patch

0c9110
From 567dd27e9b3e9098927923bf8c0c4c3a71307660 Mon Sep 17 00:00:00 2001
0c9110
From: Jakub Filak <jfilak@redhat.com>
0c9110
Date: Wed, 30 Jul 2014 13:44:02 +0200
0c9110
Subject: [LIBREPORT PATCH 49/93] gui: clear the sensitive cache between two
0c9110
 event runs
0c9110
0c9110
Was causing a SIGSEGV.
0c9110
0c9110
Related to rhbz#1069917
0c9110
0c9110
Signed-off-by: Jakub Filak <jfilak@redhat.com>
0c9110
---
0c9110
 src/gui-wizard-gtk/wizard.c | 25 +++++++++++++++++++++++++
0c9110
 1 file changed, 25 insertions(+)
0c9110
0c9110
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
0c9110
index 7cdd88b..3dcc756 100644
0c9110
--- a/src/gui-wizard-gtk/wizard.c
0c9110
+++ b/src/gui-wizard-gtk/wizard.c
0c9110
@@ -1166,6 +1166,31 @@ static void remove_tabs_from_notebook(GtkNotebook *notebook)
0c9110
         */
0c9110
         gtk_notebook_remove_page(notebook, 0); //we need to always the page 0
0c9110
     }
0c9110
+
0c9110
+    /* Turn off the changed callback during the update */
0c9110
+    g_signal_handler_block(g_tv_sensitive_sel, g_tv_sensitive_sel_hndlr);
0c9110
+
0c9110
+    g_current_highlighted_word = NULL;
0c9110
+
0c9110
+    GtkTreeIter iter;
0c9110
+    gboolean valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(g_ls_sensitive_list), &iter);
0c9110
+    while (valid)
0c9110
+    {
0c9110
+        char *text = NULL;
0c9110
+        search_item_t *word = NULL;
0c9110
+
0c9110
+        gtk_tree_model_get(GTK_TREE_MODEL(g_ls_sensitive_list), &iter,
0c9110
+                SEARCH_COLUMN_TEXT, &text,
0c9110
+                SEARCH_COLUMN_ITEM, &word,
0c9110
+                -1);
0c9110
+
0c9110
+        free(text);
0c9110
+        free(word);
0c9110
+
0c9110
+        valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(g_ls_sensitive_list), &iter);
0c9110
+    }
0c9110
+    gtk_list_store_clear(g_ls_sensitive_list);
0c9110
+    g_signal_handler_unblock(g_tv_sensitive_sel, g_tv_sensitive_sel_hndlr);
0c9110
 }
0c9110
 
0c9110
 static void append_item_to_ls_details(gpointer name, gpointer value, gpointer data)
0c9110
-- 
0c9110
1.8.3.1
0c9110