sync with 0.7.5cvs16
[claws.git] / src / folderview.c
index f2aa44bd11c49fcdf73ba10eb566f2be339141d4..0e564152a55da3b5431fa5e978753863c6960242 100644 (file)
@@ -1087,7 +1087,9 @@ static void folderview_update_node(FolderView *folderview, GtkCTreeNode *node)
                        name = g_strconcat(item->name, name, NULL);
                } else {
                        if (item->folder->type == F_NEWS &&
-                           !strcmp2(item->name, item->path))
+                           item->path &&
+                           !strcmp2(item->name, item->path) &&
+                           prefs_common.ng_abbrev_len < strlen(item->path))
                                name = get_abbrev_newsgroup_name(item->path);
                        else
                                name = g_strdup(item->name);