fpcunit: Restore the window state before the "now" parameter. Issue #27887, patch from Graeme Geldenhuys.

git-svn-id: trunk@48801 -
This commit is contained in:
juha 2015-04-21 17:29:57 +00:00
parent ba96526733
commit a92b133845

View File

@ -425,13 +425,14 @@ end;
procedure TGUITestRunner.GUITestRunnerShow(Sender: TObject);
begin
if (ParamStrUTF8(1) = '--now') or (ParamStrUTF8(1) = '-n') then
RunExecute(Self);
// restore last used position and size
Left := FConfStore.ReadInteger('WindowState', 'Left', Left);
Top := FConfStore.ReadInteger('WindowState', 'Top', Top);
Width := FConfStore.ReadInteger('WindowState', 'Width', Width);
Height := FConfStore.ReadInteger('WindowState', 'Height', Height);
if (ParamStrUTF8(1) = '--now') or (ParamStrUTF8(1) = '-n') then
RunExecute(Self);
end;
procedure TGUITestRunner.MenuItem3Click(Sender: TObject);