check if path is selected before removing a LazDoc path (issue #6941)

git-svn-id: trunk@9304 -
This commit is contained in:
vincents 2006-05-18 17:35:29 +00:00
parent 33cd10e7c1
commit 2353d96a82

View File

@ -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;