mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Deleting a Favorite can produce a "is not a valid GUID value" (fixes #315)
This commit is contained in:
parent
db3250b905
commit
06eeed2ba3
1 changed files with 2 additions and 2 deletions
|
|
@ -525,7 +525,7 @@ begin
|
|||
try
|
||||
if FileStream.Size = 0 then
|
||||
raise EXmlConfigEmpty.Create('');
|
||||
ReadXMLFile(TmpDoc, FileStream, FilenameToURI(AFilename), [xrfPreserveWhiteSpace]);
|
||||
ReadXMLFile(TmpDoc, FileStream, FilenameToURI(AFilename), []);
|
||||
if TmpDoc.DocumentElement.NodeName <> ApplicationName then
|
||||
raise EXMLReadError.Create('Root element is not <' + ApplicationName + '>.');
|
||||
FDoc.Free;
|
||||
|
|
@ -541,7 +541,7 @@ var
|
|||
begin
|
||||
if AStream.Size = 0 then
|
||||
raise EXmlConfigEmpty.Create('');
|
||||
ReadXMLFile(TmpDoc, AStream, [xrfPreserveWhiteSpace]);
|
||||
ReadXMLFile(TmpDoc, AStream, []);
|
||||
FDoc.Free;
|
||||
FDoc := TmpDoc;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue