[Commits] [SCM] claws branch, master, updated. 3.15.0-21-g9eb1c96

ticho at claws-mail.org ticho at claws-mail.org
Sun Apr 9 18:32:49 CEST 2017


The branch, master has been updated
       via  9eb1c969c85d38b31c12ec188eec8932e522a45d (commit)
      from  1d4d909086774759d9059b1a9485d1b3f7bcf3d4 (commit)

Summary of changes:
 src/edittags.c |    7 +++++++
 1 file changed, 7 insertions(+)


- Log -----------------------------------------------------------------
commit 9eb1c969c85d38b31c12ec188eec8932e522a45d
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Apr 9 18:31:52 2017 +0200

    Fix GUI not updating after deleting a tag.
    
    Fixes bug #3744 - Crash upon deleting tags.

diff --git a/src/edittags.c b/src/edittags.c
index a107c15..bd2cb91 100644
--- a/src/edittags.c
+++ b/src/edittags.c
@@ -225,6 +225,13 @@ static void apply_popup_delete (GtkAction *action, gpointer data)
 	gtk_tree_model_get(model, &sel,
 			   TAG_DATA, &id,
 			   -1);
+
+	/* Even though this is not documented, gtk_tree_model_get()
+	 * seems to invalidate the GtkTreeIter that is passed to it,
+	 * so we need to reacquire it. */
+	if (!gtk_tree_selection_get_selected(selection, NULL, &sel))
+		return;
+
 	gtk_list_store_remove(GTK_LIST_STORE(model), &sel);
 	if (mainwindow_get_mainwindow() != NULL)
 		summaryview = mainwindow_get_mainwindow()->summaryview;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list