[Goodies-commits] r3981 - xfbib/trunk/src
David Gustafsson
tssj at xfce.org
Fri Feb 22 21:06:16 CET 2008
Author: tssj
Date: 2008-02-22 20:06:16 +0000 (Fri, 22 Feb 2008)
New Revision: 3981
Modified:
xfbib/trunk/src/entry_edit_dialog.c
Log:
Fixed a bug when adding an entry to a new file
Modified: xfbib/trunk/src/entry_edit_dialog.c
===================================================================
--- xfbib/trunk/src/entry_edit_dialog.c 2008-02-21 23:07:12 UTC (rev 3980)
+++ xfbib/trunk/src/entry_edit_dialog.c 2008-02-22 20:06:16 UTC (rev 3981)
@@ -286,7 +286,6 @@
struct tag *tags;
char *type;
const gchar *value, *key;
- struct node *node = xfbib->list;
const char *tooltips[] = {_("Address of publisher"),
_("Annotation for annotated bibliography styles"),
_("Name(s) of the author(s), separated by 'and' if more than one"),
@@ -396,7 +395,7 @@
if (selected == NULL) {
_DEBUG(("Add new entry"));
/* TODO: Maybe you shouldnt have to set the type and key */
- selected = add_entry(&node, type,(char*) key);
+ selected = add_entry(&xfbib->list, type,(char*) key);
} else {
_DEBUG(("Edit old entry"));
selected->key = strdup(key);
More information about the Goodies-commits
mailing list