mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:49:30 +02:00
IDE, Edit external tool dialog: don't add empty item to external tools list, not only show error message, bug #18174
git-svn-id: trunk@28714 -
This commit is contained in:
parent
562432af1c
commit
dcfd50061c
@ -363,14 +363,14 @@ end;
|
||||
|
||||
procedure TExternalToolOptionDlg.OKButtonClick(Sender: TObject);
|
||||
begin
|
||||
if (TitleEdit.Text='') or (FilenameEdit.Text='') then begin
|
||||
if (TitleEdit.Text<>'') and (FilenameEdit.Text<>'') then
|
||||
SaveToOptions
|
||||
else begin
|
||||
MessageDlg(lisEdtExtToolTitleAndFilenameRequired,
|
||||
lisEdtExtToolAValidToolNeedsAtLeastATitleAndAFilename,
|
||||
mtError, [mbCancel], 0);
|
||||
exit;
|
||||
ModalResult:=mrCancel;
|
||||
end;
|
||||
SaveToOptions;
|
||||
ModalResult:=mrOk;
|
||||
end;
|
||||
|
||||
{ TExternalToolOptions }
|
||||
|
Loading…
Reference in New Issue
Block a user