View Issue Details

IDProjectCategoryView StatusLast Update
0002964JEDI VCL00 JVCL Componentspublic2005-10-19 15:36
ReporteranonymousAssigned Tojfudickar 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0002964: TJvAppIniFileStorage.PathExists fails if the path is a simple one
DescriptionIf you call AppStorage.PathExists with a simple path e.g.
  AppStorage.PathExists('EditorOptions')
the function returns false even if a section 'EditorOptions' exists. As you see in the code below the reason is that it that TJvCustomAppIniStorage.PathExistsInt searches for Section+'\'+Key.


function TJvCustomAppIniStorage.PathExistsInt(const Path: string): Boolean;
var
  Section: string;
  Key: string;
begin
  ReloadIfNeeded;
  SplitKeyPath(Path, Section, Key);
  Result := IniFile.SectionExists(Section + '\' + Key);
end;

Why shouldn't this function be simply?:

function TJvCustomAppIniStorage.PathExistsInt(const Path: string): Boolean;
begin
  ReloadIfNeeded;
  Result := IniFile.SectionExists(Path);
end;

TagsNo tags attached.

Activities

jfudickar

2005-07-24 08:25

developer   ~0007596

Fixed in cvs. Little bit different then suggested. Please have a look for it

Issue History

Date Modified Username Field Change
2005-05-18 21:41 anonymous New Issue
2005-07-24 08:24 jfudickar Status new => assigned
2005-07-24 08:24 jfudickar Assigned To => jfudickar
2005-07-24 08:25 jfudickar Note Added: 0007596
2005-07-24 08:25 jfudickar Status assigned => feedback
2005-10-19 15:36 jfudickar Status feedback => resolved
2005-10-19 15:36 jfudickar Resolution open => fixed