mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 16:00:23 +02:00
LCL: GTK2: transient form when called from modal form and PopupMode <> pmNone.
git-svn-id: trunk@56834 -
This commit is contained in:
parent
b4f4b7767b
commit
630f7a6594
@ -713,6 +713,8 @@ var
|
||||
// lcl_nonmodal_over_modal is needed to track nonmodal form
|
||||
// created and shown when we have active modal forms
|
||||
g_object_set_data(PGObject(AWindow),'lcl_nonmodal_over_modal', AForm);
|
||||
if (AForm.PopupMode <> pmNone) and (AForm.PopupParent <> nil) then
|
||||
gtk_window_set_transient_for(AWindow, PGtkWindow(AForm.Handle));
|
||||
Result := True;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user