tentative fix to docclass combox problems

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2741 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-09-12 13:12:22 +00:00
parent c50bd2b573
commit 3367b31201
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-09-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* combox.C (hide): execute the callback _after_ closing the
combox.
2001-09-12 Angus Leeming <a.leeming@ic.ac.uk>
* forms/form_citation.fd: remove spurious shortcut to a labelframe!

View File

@ -338,8 +338,6 @@ void Combox::hide(int who)
}
XUngrabPointer(fl_get_display(), 0);
XFlush(fl_get_display());
if (!who && browser && label && callback)
callback(sel, cb_arg, this);
if (form) {
fl_hide_form(form);
XSetInputFocus(fl_get_display(), save_window,
@ -352,6 +350,8 @@ void Combox::hide(int who)
fl_redraw_object(button);
}
}
if (!who && browser && label && callback)
callback(sel, cb_arg, this);
if (_post) _post();
}