[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-28-g7e5b549d2

mones at claws-mail.org mones at claws-mail.org
Wed Jan 4 18:51:36 UTC 2023


The branch, gtk2 has been updated
       via  7e5b549d2fbe7d4974122545afc3b90fa45f65c5 (commit)
      from  af71ec4c4de6b9e97a95139e4f6e5cef26947920 (commit)

Summary of changes:
 src/folderview.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 7e5b549d2fbe7d4974122545afc3b90fa45f65c5
Author: Ricardo Mones <ricardo at mones.org>
Date:   Wed Jan 4 19:50:09 2023 +0100

    Fix CID 1518897

diff --git a/src/folderview.c b/src/folderview.c
index a3128b613..556f7347e 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -2004,9 +2004,14 @@ static void folderview_set_sens_and_popup_menu(FolderView *folderview, gint row,
 	SET_SENS("FolderViewPopup/Processing", item->node->parent != NULL && 
 		!item->no_select && !item->processing_pending);
 
-	SET_SENS("FolderViewPopup/OpenFolder", item->node->parent != NULL
-		&& (!prefs_common.goto_folder_on_startup
-			|| strcmp(folder_item_get_identifier(item), prefs_common.startup_folder)));
+	if (item->node->parent != NULL) {
+		gchar *id = folder_item_get_identifier(item);
+		SET_SENS("FolderViewPopup/OpenFolder", !prefs_common.goto_folder_on_startup
+			|| strcmp(id, prefs_common.startup_folder));
+		g_free(id);
+	} else {
+		SET_SENS("FolderViewPopup/OpenFolder", FALSE);
+	}
 
 	if (item == folder->trash || item == special_trash
 	    || folder_has_parent_of_type(item, F_TRASH)) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list