From d7656977a269a184d0cf66c64b71f9fffa064704 Mon Sep 17 00:00:00 2001 From: juha Date: Fri, 21 Oct 2011 15:44:48 +0000 Subject: [PATCH] IDE: update windows layout after loading desktop settings from file. git-svn-id: trunk@33007 - --- ide/frames/desktop_options.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ide/frames/desktop_options.pas b/ide/frames/desktop_options.pas index ceaa464aae..e85ffb98d9 100644 --- a/ide/frames/desktop_options.pas +++ b/ide/frames/desktop_options.pas @@ -27,7 +27,7 @@ interface uses Classes, SysUtils, FileUtil, Forms, StdCtrls, Dialogs, LCLProc, ExtCtrls, EnvironmentOpts, LazarusIDEStrConsts, IDETranslations, InputHistory, - IDEProcs, IDEOptionsIntf; + IDEProcs, IDEOptionsIntf, IDEWindowIntf; type @@ -299,6 +299,8 @@ begin AnEnvironmentOptions.Filename := OpenDialog.Filename; AnEnvironmentOptions.Load(true); DoLoadSettings(AnEnvironmentOptions); + if IDEDockMaster=nil then + IDEWindowCreators.RestoreSimpleLayout; ShowMessage(lisLoadedSuccessfully); finally AnEnvironmentOptions.Free;