[Commits] [SCM] claws branch, master, updated. 4.1.1-33-g964f268a7
mones at claws-mail.org
mones at claws-mail.org
Wed Jan 4 18:51:37 UTC 2023
The branch, master has been updated
via 964f268a7099f440882552c78b415bceded6f0e4 (commit)
from cc3ffa1e257c300f99dd667def929e44eb0945cf (commit)
Summary of changes:
src/folderview.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 964f268a7099f440882552c78b415bceded6f0e4
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 791885134..99f3c61d2 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -2000,9 +2000,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