[gq-commit] gq/src browse.c,1.94,1.95
Status: Beta
Brought to you by:
sur5r
From: <sta...@us...> - 2003-11-03 21:14:51
|
Update of /cvsroot/gqclient/gq/src In directory sc8-pr-cvs1:/tmp/cvs-serv2145 Modified Files: browse.c Log Message: * Fixed a crash when refreshing non dn-browse entries (used a pointer to an already free'd inputform Index: browse.c =================================================================== RCS file: /cvsroot/gqclient/gq/src/browse.c,v retrieving revision 1.94 retrieving revision 1.95 diff -C2 -d -r1.94 -r1.95 *** browse.c 3 Nov 2003 21:07:56 -0000 1.94 --- browse.c 3 Nov 2003 21:14:41 -0000 1.95 *************** *** 2,6 **** GQ -- a GTK-based LDAP client Copyright (C) 1998-2003 Bert Vermeulen ! Parts: Copyright (C) 2002-2003 Peter Stamfest <pe...@st...> This program is released under the Gnu General Public License with --- 2,6 ---- GQ -- a GTK-based LDAP client Copyright (C) 1998-2003 Bert Vermeulen ! Copyright (C) 2002-2003 Peter Stamfest This program is released under the Gnu General Public License with *************** *** 378,381 **** --- 378,393 ---- GTK_WIDGET(ctree)); + /* delete old struct inputform (if any) */ + struct inputform *iform = BROWSETAB(tab)->inputform; + if(iform) { + /* but first get current hide status */ + /* HACK: store hide status it in the browse-tab + data-structure */ + BROWSETAB(tab)->hidden = iform->hide_status; + + inputform_free(iform); + BROWSETAB(tab)->inputform = NULL; + } + entry->base_methods->refresh(entry, ctx, ctree, node, tab); error_flush(ctx); |