mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 04:52:38 +02:00
components: chmhelp: DoOpenChm can leave fChms = nil in case of exception (e.g.: when file is locked)
git-svn-id: trunk@21722 -
This commit is contained in:
parent
4e3186459c
commit
e2693b1724
@ -667,7 +667,11 @@ begin
|
||||
//writeln(fURL);
|
||||
LoadTOC := (fChms = nil) or (fChms.IndexOf(fFile) < 0);
|
||||
DoOpenChm(fFile, False);
|
||||
FileIndex := fChms.IndexOf(fFile);
|
||||
// in case of exception fChms can be still = nil
|
||||
if fChms <> nil then
|
||||
FileIndex := fChms.IndexOf(fFile)
|
||||
else
|
||||
Exit;
|
||||
if fURL <> '' then
|
||||
DoLoadUri(MakeURI(fURL, fChms.Chm[FileIndex]))
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user