mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
IDE: Fix a crash in Path Dialog editor. Issue #27107, patch from Malcolm Poole.
git-svn-id: trunk@47031 -
This commit is contained in:
parent
e6de17e11f
commit
946396bb72
@ -550,9 +550,9 @@ var
|
||||
InValidPathsExist: Boolean;
|
||||
begin
|
||||
// Replace / add / delete / Delete Invalid Paths
|
||||
ReplaceButton.Enabled:=(DirectoryEdit.Text<>'') and (DirectoryEdit.Text<>FEffectiveBaseDirectory)
|
||||
AddButton.Enabled:=(DirectoryEdit.Text<>'') and (DirectoryEdit.Text<>FEffectiveBaseDirectory)
|
||||
and (PathListBox.Items.IndexOf(BaseRelative(DirectoryEdit.Text))=-1);
|
||||
AddButton.Enabled:=ReplaceButton.Enabled;
|
||||
ReplaceButton.Enabled:=AddButton.Enabled and (PathListBox.ItemIndex>-1) ;
|
||||
DeleteButton.Enabled:=PathListBox.SelCount=1; // or ItemIndex>-1; ?
|
||||
AddTemplateButton.Enabled:=(TemplatesListBox.SelCount>1) or ((TemplatesListBox.ItemIndex>-1)
|
||||
and (PathListBox.Items.IndexOf(TemplatesListBox.Items[TemplatesListBox.ItemIndex])=-1));
|
||||
|
Loading…
Reference in New Issue
Block a user