mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-17 01:15:59 +02:00
combined use of FRootNode and FRootNodePath (fixes #1947)
git-svn-id: trunk@9053 -
This commit is contained in:
parent
187be8e445
commit
f1760e1ed2
@ -36,7 +36,6 @@ type
|
||||
FCount: Integer;
|
||||
FFileName: String;
|
||||
FXML: TPropStorageXMLConfig;
|
||||
FRootNode: String;
|
||||
FRootNodePath: String;
|
||||
protected
|
||||
Function GetXMLFileName: string; virtual;
|
||||
@ -51,7 +50,7 @@ type
|
||||
Procedure DoEraseSections(const ARootSection: String);override;
|
||||
public
|
||||
property FileName: String Read FFileName Write FFileName;
|
||||
property RootNodePath: String Read FRootNode Write FRootNodePath;
|
||||
property RootNodePath: String Read FRootNodePath Write FRootNodePath;
|
||||
end;
|
||||
|
||||
TXMLPropStorage = class(TCustomXMLPropStorage)
|
||||
@ -122,8 +121,8 @@ end;
|
||||
|
||||
function TCustomXMLPropStorage.RootSection: String;
|
||||
begin
|
||||
If (FRootNode<>'') then
|
||||
Result:=FRootNode
|
||||
If (FRootNodePath<>'') then
|
||||
Result:=FRootNodePath
|
||||
else
|
||||
Result:=inherited RootSection;
|
||||
Result:=FixPath(Result);
|
||||
|
Loading…
Reference in New Issue
Block a user