mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 02:28:04 +02:00
check if path is selected before removing a LazDoc path (issue #6941)
git-svn-id: trunk@9304 -
This commit is contained in:
parent
33cd10e7c1
commit
2353d96a82
@ -379,7 +379,8 @@ end;
|
||||
|
||||
procedure TProjectOptionsDialog.LazDocDeletePathButtonClick(Sender: TObject);
|
||||
begin
|
||||
LazDocListBox.Items.Delete(LazDocListBox.ItemIndex);
|
||||
if (LazDocListBox.ItemIndex >= 0) then
|
||||
LazDocListBox.Items.Delete(LazDocListBox.ItemIndex);
|
||||
end;
|
||||
|
||||
function TProjectOptionsDialog.GetAutoCreatedFormsList: TStrings;
|
||||
|
Loading…
Reference in New Issue
Block a user