favorites: use AppendPathDelim instead of IncludeTrailingPathDelimiter for config paths.

git-svn-id: trunk@51405 -
This commit is contained in:
ondrej 2016-01-25 12:48:37 +00:00
parent 01a9fd311b
commit 5a4006d0a4

View File

@ -32,7 +32,7 @@ interface
uses
Classes, SysUtils, ToolBarIntf, IDEImagesIntf, Graphics, PackageIntf,
Menus, LazIDEIntf, ProjectIntf, Laz2_XMLCfg, IDEOptionsIntf,
IDECommands, ComCtrls, favoritesstr, ImgList;
IDECommands, ComCtrls, favoritesstr, ImgList, LazFileUtils;
type
TFavoritesHandler = class
@ -234,7 +234,7 @@ begin
FFavoriteProjects.Duplicates := dupIgnore;
FFavoriteProjects.CaseSensitive := False;
FFavoriteProjects.Sorted := True;
FConfig := TXMLConfig.Create(IncludeTrailingPathDelimiter(LazarusIDE.GetPrimaryConfigPath)+'favorites.xml');
FConfig := TXMLConfig.Create(AppendPathDelim(LazarusIDE.GetPrimaryConfigPath)+'favorites.xml');
LoadFromConfig;
xToolButton := IDEToolButtonCategories.FindItemByCommand(ecOpen);