LCL: first call closemodal and then hide the form, as it was before r10339 #c0f7e52665 (bug #8059)

git-svn-id: trunk@10370 -
This commit is contained in:
vincents 2007-01-04 12:51:07 +00:00
parent a774b547a9
commit 49a9083bf9

View File

@ -1908,9 +1908,9 @@ begin
if HandleAllocated and (GetActiveWindow <> Handle) then
ActiveWindow := 0;
finally
Hide;
{ guarantee execution of widgetset CloseModal }
TWSCustomFormClass(WidgetSetClass).CloseModal(Self);
Hide;
// free handles to save resources and to reduce overhead in the interfaces
// for bookkeeping changing between Show and ShowModal.
// (e.g.: the gtk interface creates some specials on ShowModal, so the