[Commits] [SCM] claws branch, vfolder, updated. 3.10.1-108-gf67bf5f

miras at claws-mail.org miras at claws-mail.org
Sat Jun 21 23:09:59 CEST 2014


The branch vfolder of project "claws" (Claws Mail) has been updated
       via  f67bf5f325ddc11d703f12b5f6f8e2624e4b355e (commit)
      from  7548f0b8e609be24c00c347ba6fd2564c41b1876 (commit)

Summary of changes:
 src/plugins/vfolder/vfolder_gtk.c |    6 ++++++
 1 file changed, 6 insertions(+)


- Log -----------------------------------------------------------------
commit f67bf5f325ddc11d703f12b5f6f8e2624e4b355e
Author: Michael Rasmussen <mir at datanom.net>
Date:   Sat Jun 21 23:09:53 2014 +0200

    Don't crash if folder is root folder

diff --git a/src/plugins/vfolder/vfolder_gtk.c b/src/plugins/vfolder/vfolder_gtk.c
index 25b88a2..c9471c6 100644
--- a/src/plugins/vfolder/vfolder_gtk.c
+++ b/src/plugins/vfolder/vfolder_gtk.c
@@ -478,6 +478,12 @@ void vfolder_new_folder_cb(GtkAction* action, gpointer data) {
 
     item = folderview_get_selected_item(folderview);
     if (item) {
+		FolderItem* parent = folder_item_parent(item);
+		if (! parent) {
+			alertpanel_error(_("%s: Is a root folder. You must choose a message folder like Inbox."),
+							 item->name);
+			return;
+		}
 		cm_return_if_fail(item->path != NULL);
 		cm_return_if_fail(item->folder != NULL);
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list