mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-13 02:20:09 +01:00
ide fixed av in path editor dlg on replace on cocoa
This commit is contained in:
parent
15853ffffd
commit
fea93f0749
@ -26,7 +26,7 @@ uses
|
|||||||
LCLType, Forms, Controls, Buttons, StdCtrls, Dialogs, Menus, Graphics,
|
LCLType, Forms, Controls, Buttons, StdCtrls, Dialogs, Menus, Graphics,
|
||||||
ButtonPanel, Clipbrd,
|
ButtonPanel, Clipbrd,
|
||||||
// LazUtils
|
// LazUtils
|
||||||
FileUtil, LazFileUtils, LazStringUtils, LazFileCache, LazUTF8,
|
FileUtil, LazFileUtils, LazStringUtils, LazFileCache, LazUTF8, LazLoggerBase,
|
||||||
// LazControls
|
// LazControls
|
||||||
ShortPathEdit,
|
ShortPathEdit,
|
||||||
// IdeIntf
|
// IdeIntf
|
||||||
@ -265,10 +265,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TPathEditorDialog.ReplaceButtonClick(Sender: TObject);
|
procedure TPathEditorDialog.ReplaceButtonClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
with PathListBox do begin
|
with PathListBox do begin
|
||||||
Items[ItemIndex]:=BaseRelative(DirectoryEdit.Text);
|
i:=ItemIndex;
|
||||||
Items.Objects[ItemIndex]:=PathMayExist(DirectoryEdit.Text);
|
if i<0 then exit;
|
||||||
|
Items[i]:=BaseRelative(DirectoryEdit.Text);
|
||||||
|
Items.Objects[i]:=PathMayExist(DirectoryEdit.Text);
|
||||||
UpdateButtons;
|
UpdateButtons;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user