mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
SpartaDockedFormEditor: Project with a form shows now the correct source editor (last tab position) after reopening.
git-svn-id: trunk@58175 -
This commit is contained in:
parent
4efc47f4df
commit
7407d2a0d2
@ -445,6 +445,10 @@ procedure TDesignFormData.WndMethod(var Msg: TLMessage);
|
||||
var
|
||||
i: Integer;
|
||||
begin
|
||||
// Just do it for new created forms or the last loaded form becomes the active
|
||||
// source editor after reopening a project.
|
||||
if Form.Form.Designer <> SourceEditorManagerIntf.ActiveEditor.GetDesigner(True) then Exit;
|
||||
|
||||
SourceEditorManagerIntf.ActiveEditor := nil;
|
||||
for i := 0 to SourceEditorManagerIntf.UniqueSourceEditorCount - 1 do
|
||||
if Form.Form.Designer = SourceEditorManagerIntf.UniqueSourceEditors[i].GetDesigner(True) then
|
||||
@ -465,8 +469,7 @@ begin
|
||||
KillTimer(FForm.Form.Handle, WM_SETNOFRAME);
|
||||
ShowWindow(Form.Form.Handle, SW_HIDE);
|
||||
FHiding := False;
|
||||
if Form.Form = LazarusIDE.LastFormActivated then
|
||||
FixF12_ActiveEditor;
|
||||
FixF12_ActiveEditor;
|
||||
if Form.Form is TFakeForm then
|
||||
RepaintFormImages;
|
||||
Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user