diff --git a/src/ce_main.pas b/src/ce_main.pas index 1313591b..2bb8a7bb 100644 --- a/src/ce_main.pas +++ b/src/ce_main.pas @@ -523,7 +523,7 @@ begin for i := 0 to fWidgList.Count-1 do begin - DockMaster.MakeDockable(fWidgList.widget[i], false); + DockMaster.MakeDockable(fWidgList.widget[i], not fileExists(getCoeditDocPath + 'docking.xml')); DockMaster.GetAnchorSite(fWidgList.widget[i]).Header.HeaderPosition := adlhpTop; end; diff --git a/src/ce_synmemo.pas b/src/ce_synmemo.pas index 41999a36..f6cf509f 100644 --- a/src/ce_synmemo.pas +++ b/src/ce_synmemo.pas @@ -405,7 +405,7 @@ begin loadCache; // fModified := false; - setFocus; + if Showing then setFocus; subjDocChanged(TCEMultiDocSubject(fMultiDocSubject), self); end;