Skip to content

Commit 67dbf95

Browse files
committed
Merged revision(s) 4003-4493, 3462-4003 from tags/version-4.8.5:
This updates the trunk with changes made in release 4.8.5.
1 parent 29d90dc commit 67dbf95

File tree

15 files changed

+65
-42
lines changed

15 files changed

+65
-42
lines changed

Docs/ChangeLogs/ChangeLog-v4.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33
; v. 2.0. If a copy of the MPL was not distributed with this file, You can
44
; obtain one at http://mozilla.org/MPL/2.0/
55
;
6-
; Copyright (C) 2012-2013, Peter Johnson (www.delphidabbler.com).
6+
; Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com).
77
;
88
; $Rev$
99
; $Date$
1010
;
1111
; Change Log for CodeSnip Release 4
1212
; ------------------------------------------------------------------------------
1313

14+
Release v4.8.5 of 13 January 2014
15+
+ Fixed bug #91 "Generated units won't compile on Delphi XE5" (http://bit.ly/1eBjym2). Compiler directives that are used to change compiler warnings now includes a conditionally compiled $LEGACYIFEND ON directive.
16+
+ Fixed potential bug when checking for the existence of files. It had been possible that a "sym-link" to a file could give misleading results.
17+
+ Updated program copyright date in license file, about box, help file and installer.
18+
1419
Release v4.8.4 of 28 November 2013
1520
+ Improved user interface of SWAG Import Wizard.
1621
+ Renamed "Save Snippet" and "Copy Snippet" menu options to "Save Annotated Source" and "Copy Annotated Source". This fixes bug #90: " Wrong caption on menu option for copying category to clipboard" (http://bit.ly/ImA398).

Docs/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ This Source Code Form is subject to the terms of the Mozilla Public
55
License, v. 2.0. If a copy of the MPL was not distributed with this
66
file, You can obtain one at http://mozilla.org/MPL/2.0/.
77

8-
All files are copyright (C) 2012-2013, Peter Johnson (www.delphidabbler.com).
8+
All files are copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com).

Docs/License.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
66
* obtain one at http://mozilla.org/MPL/2.0/
77
*
8-
* Copyright (C) 2012-2013, Peter Johnson (www.delphidabbler.com).
8+
* Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com).
99
*
1010
* $Rev$
1111
* $Date$
@@ -228,7 +228,7 @@ <h2>
228228
Executable Program
229229
</h2>
230230
<p>
231-
DelphiDabbler <em>CodeSnip</em> is copyright &copy; 2005-2013 by Peter D
231+
DelphiDabbler <em>CodeSnip</em> is copyright &copy; 2005-2014 by Peter D
232232
Johnson, <a
233233
href="http://www.delphidabbler.com"
234234
>http://www.delphidabbler.com</a>.

Src/Favourites.UPersist.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class procedure TFavouritesPersist.Load(Favourites: TFavourites);
7979
resourcestring
8080
sBadFormat = 'Invalid favourites file format';
8181
begin
82-
if not TFile.Exists(FavouritesFileName) then
82+
if not TFile.Exists(FavouritesFileName, False) then
8383
Exit;
8484
try
8585
Lines := TIStringList.Create(

Src/FirstRun.UConfigFile.pas

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class function TConfigFileUpdater.IsCurrentProgramVer(
219219

220220
procedure TConfigFileUpdater.Stamp;
221221
begin
222-
if not TFile.Exists(fCfgFileName) then
222+
if not TFile.Exists(fCfgFileName, False) then
223223
CreateNewFile;
224224
SetIniInt('IniFile', 'Version', GetFileVersion, fCfgFileName);
225225
end;
@@ -228,7 +228,7 @@ procedure TConfigFileUpdater.Stamp;
228228

229229
procedure TUserConfigFileUpdater.CreateDefaultCodeGenEntries;
230230
begin
231-
if not TFile.Exists(CfgFileName) then
231+
if not TFile.Exists(CfgFileName, False) then
232232
CreateNewFile;
233233
SetIniInt('Prefs:CodeGen', 'EmitWarnDirs', 0, CfgFileName);
234234
SetIniInt('Prefs:CodeGen', 'WarningCount', 8, CfgFileName);
@@ -270,7 +270,7 @@ procedure TUserConfigFileUpdater.CreateDefaultCodeGenEntries;
270270
{$IFNDEF PORTABLE}
271271
procedure TUserConfigFileUpdater.DeleteDetailsPaneIndex;
272272
begin
273-
if not TFile.Exists(CfgFileName) then
273+
if not TFile.Exists(CfgFileName, False) then
274274
CreateNewFile;
275275
DeleteIniKey('MainWindow', 'DetailTab', CfgFileName);
276276
end;
@@ -279,7 +279,7 @@ procedure TUserConfigFileUpdater.DeleteDetailsPaneIndex;
279279
{$IFNDEF PORTABLE}
280280
procedure TUserConfigFileUpdater.DeleteHighligherPrefs;
281281
begin
282-
if not TFile.Exists(CfgFileName) then
282+
if not TFile.Exists(CfgFileName, False) then
283283
CreateNewFile;
284284
DeleteIniSection('Prefs:Hiliter', CfgFileName);
285285
end;
@@ -288,7 +288,7 @@ procedure TUserConfigFileUpdater.DeleteHighligherPrefs;
288288
{$IFNDEF PORTABLE}
289289
procedure TUserConfigFileUpdater.DeleteProxyPassword;
290290
begin
291-
if not TFile.Exists(CfgFileName) then
291+
if not TFile.Exists(CfgFileName, False) then
292292
CreateNewFile;
293293
SetIniString('ProxyServer', 'Password', '', CfgFileName);
294294
end;
@@ -308,7 +308,7 @@ function TUserConfigFileUpdater.HasProxyPassword: Boolean;
308308

309309
procedure TUserConfigFileUpdater.RenameMainWindowSection;
310310
begin
311-
if not TFile.Exists(CfgFileName) then
311+
if not TFile.Exists(CfgFileName, False) then
312312
Exit;
313313
if not IniSectionExists('MainWindow', CfgFileName) then
314314
Exit;
@@ -370,7 +370,7 @@ procedure TUserConfigFileUpdater.UpdateCodeGenEntries;
370370
begin
371371
// Key that determines if warnings are emitted changes from SwitchOffWarnings
372372
// to EmitWarnDirs.
373-
if not TFile.Exists(CfgFileName) then
373+
if not TFile.Exists(CfgFileName, False) then
374374
CreateNewFile;
375375
if IniKeyExists('Prefs:CodeGen', 'SwitchOffWarnings', CfgFileName) then
376376
begin
@@ -410,7 +410,7 @@ procedure TUserConfigFileUpdater.UpdateFromOriginal;
410410
var
411411
I: Integer; // loops thru all highlight elements
412412
begin
413-
if not TFile.Exists(CfgFileName) then
413+
if not TFile.Exists(CfgFileName, False) then
414414
CreateNewFile;
415415
// Delete unwanted sections:
416416
// - Application section: now in common config file

Src/FirstRun.UInstallInfo.pas

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,21 @@ procedure TInstallInfo.DetectInstall;
196196
end;
197197

198198
begin
199-
if TFile.Exists(MakeFullUserPath(UserConfigFileNames[piV4])) and not
199+
if TFile.Exists(MakeFullUserPath(UserConfigFileNames[piV4]), False) and not
200200
IsEmptyUnicodeCfgFile(MakeFullUserPath(UserConfigFileNames[piV4])) then
201201
fInstallID := piV4
202202
{$IFNDEF PORTABLE}
203-
else if TFile.Exists(MakeFullUserPath(UserConfigFileNames[piV3])) then
203+
else if TFile.Exists(MakeFullUserPath(UserConfigFileNames[piV3]), False) then
204204
fInstallID := piV3
205205
else if TDirectory.Exists(MakeFullUserPath(DatabaseDirs[piV2])) then
206206
fInstallID := piV2
207-
else if TFile.Exists(MakeFullUserPath(UserConfigFileNames[piV1_9])) then
207+
else if TFile.Exists(
208+
MakeFullUserPath(UserConfigFileNames[piV1_9]), False
209+
) then
208210
fInstallID := piV1_9
209-
else if TFile.Exists(MakeFullUserPath(UserConfigFileNames[piOriginal])) then
211+
else if TFile.Exists(
212+
MakeFullUserPath(UserConfigFileNames[piOriginal]), False
213+
) then
210214
fInstallID := piOriginal
211215
{$ENDIF}
212216
else

Src/FirstRun.UMain.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ function TFirstRun.HasOldStyleProxyPwd: Boolean;
196196

197197
function TFirstRun.HaveOldUserCfgFile: Boolean;
198198
begin
199-
Result := TFile.Exists(fInstallInfo.PreviousUserConfigFileName);
199+
Result := TFile.Exists(fInstallInfo.PreviousUserConfigFileName, False);
200200
end;
201201

202202
function TFirstRun.HaveOldUserDB: Boolean;
203203
begin
204-
Result := TFile.Exists(fInstallInfo.PreviousUserDatabaseFileName);
204+
Result := TFile.Exists(fInstallInfo.PreviousUserDatabaseFileName, False);
205205
end;
206206

207207
function TFirstRun.IsProgramUpdated: Boolean;
@@ -318,7 +318,7 @@ class function TFirstRunMgr.IsProgramUpdated: Boolean;
318318

319319
class function TFirstRunMgr.UserCfgFileExists: Boolean;
320320
begin
321-
Result := TFile.Exists(TInstallInfo.CurrentUserConfigFileName);
321+
Result := TFile.Exists(TInstallInfo.CurrentUserConfigFileName, False);
322322
end;
323323

324324
end.

Src/Help/HTML/license.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
55
* obtain one at http://mozilla.org/MPL/2.0/
66
*
7-
* Copyright (C) 2012-2013, Peter Johnson (www.delphidabbler.com).
7+
* Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com).
88
*
99
* $Rev$
1010
* $Date$
@@ -30,7 +30,7 @@ <h1>
3030
<a name="license"></a>Summary of End User License Agreement
3131
</h1>
3232
<p>
33-
DelphiDabbler <em>CodeSnip</em> is copyright &copy; 2005-2013 by Peter D
33+
DelphiDabbler <em>CodeSnip</em> is copyright &copy; 2005-2014 by Peter D
3434
Johnson, <a
3535
href="http://delphidabbler.com"
3636
class="weblink"

Src/Install/Assets/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ This Source Code Form is subject to the terms of the Mozilla Public
55
License, v. 2.0. If a copy of the MPL was not distributed with this
66
file, You can obtain one at http://mozilla.org/MPL/2.0/.
77

8-
All files are copyright (C) 2012-2013, Peter Johnson (www.delphidabbler.com).
8+
All files are copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com).

Src/Install/Assets/License.rtf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)