2009-11-18 [pawel] 3.7.3cvs16
* src/news_gtk.c Fix Bug 2057 'Claws mail does not keep renamed names of nntp-subscribed groups' Check for already subscribed group using item->path for group comparision as folders item->path != item->name may be truth since we allowed renaming of newsgroups folders -> 3.5.0cvs11
This commit is contained in:
parent
d14322195e
commit
9690829fbf
|
@ -1,3 +1,12 @@
|
|||
2009-11-18 [pawel] 3.7.3cvs16
|
||||
|
||||
* src/news_gtk.c
|
||||
Fix Bug 2057 'Claws mail does not keep renamed names
|
||||
of nntp-subscribed groups'
|
||||
Check for already subscribed group using item->path for group
|
||||
comparision as folders item->path != item->name may be truth
|
||||
since we allowed renaming of newsgroups folders -> 3.5.0cvs11
|
||||
|
||||
2009-11-17 [pawel] 3.7.3cvs15
|
||||
|
||||
* Makefile.am
|
||||
|
|
|
@ -3889,3 +3889,4 @@
|
|||
( cvs diff -u -r 1.60.2.134 -r 1.60.2.135 src/addressbook.c; cvs diff -u -r 1.382.2.524 -r 1.382.2.525 src/compose.c; cvs diff -u -r 1.50.2.55 -r 1.50.2.56 src/compose.h; cvs diff -u -r 1.60.2.53 -r 1.60.2.54 src/filtering.c; ) > 3.7.3cvs13.patchset
|
||||
( cvs diff -u -r 1.30.2.57 -r 1.30.2.58 src/prefs_toolbar.c; cvs diff -u -r 1.5.2.6 -r 1.5.2.7 src/prefs_toolbar.h; cvs diff -u -r 1.43.2.110 -r 1.43.2.111 src/toolbar.c; cvs diff -u -r 1.19.2.31 -r 1.19.2.32 src/toolbar.h; ) > 3.7.3cvs14.patchset
|
||||
( cvs diff -u -r 1.24.2.26 -r 1.24.2.27 Makefile.am; ) > 3.7.3cvs15.patchset
|
||||
( cvs diff -u -r 1.2.2.31 -r 1.2.2.32 src/news_gtk.c; ) > 3.7.3cvs16.patchset
|
||||
|
|
|
@ -12,7 +12,7 @@ MINOR_VERSION=7
|
|||
MICRO_VERSION=3
|
||||
INTERFACE_AGE=0
|
||||
BINARY_AGE=0
|
||||
EXTRA_VERSION=15
|
||||
EXTRA_VERSION=16
|
||||
EXTRA_RELEASE=
|
||||
EXTRA_GTK2_VERSION=
|
||||
|
||||
|
|
|
@ -130,6 +130,21 @@ static void set_sensitivity(GtkUIManager *ui_manager, FolderItem *item)
|
|||
#undef SET_SENS
|
||||
}
|
||||
|
||||
static FolderItem *news_find_child_item(FolderItem *item, const gchar *path)
|
||||
{
|
||||
GNode *node;
|
||||
FolderItem *child;
|
||||
|
||||
for (node = item->node->children; node != NULL; node = node->next) {
|
||||
child = FOLDER_ITEM(node->data);
|
||||
if (strcmp2(child->path, path) == 0) {
|
||||
return child;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void subscribe_newsgroup_cb(GtkAction *action, gpointer data)
|
||||
{
|
||||
FolderView *folderview = (FolderView *)data;
|
||||
|
@ -201,7 +216,7 @@ static void subscribe_newsgroup_cb(GtkAction *action, gpointer data)
|
|||
gchar *name = (gchar *)cur->data;
|
||||
FolderUpdateData hookdata;
|
||||
|
||||
if (folder_find_child_item_by_name(rootitem, name) != NULL)
|
||||
if (news_find_child_item(rootitem, name) != NULL)
|
||||
continue;
|
||||
|
||||
newitem = folder_item_new(folder, name, name);
|
||||
|
|
Loading…
Reference in a new issue