installer: minor refactoring

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@749 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
XhmikosR 2011-10-25 19:43:06 +00:00
parent 574d7a1fba
commit 719418b16a

View File

@ -364,14 +364,12 @@ end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if IsUpgrade() then begin
// Hide the license page
if PageID = wpLicense then begin
Result := True;
end
else begin
// Hide the license page
if IsUpgrade() AND (PageID = wpLicense) then begin
Result := True;
end
else begin
Result := False;
end;
end;
end;