Commit 2d425eb7 authored by Juha Manninen's avatar Juha Manninen
Browse files

IDE: Workaround for a missing DirectoryEdit event in Carbon: Path Editor Menu...

IDE: Workaround for a missing DirectoryEdit event in Carbon: Path Editor Menu buttons are disabled. Issue #23063, patch from Alexey Torgashin.

git-svn-id: trunk@47877 -
parent 68c00a72
......@@ -266,10 +266,13 @@ begin
UpdateButtons;
end;
procedure TPathEditorDialog.DirectoryEditAcceptDirectory(Sender: TObject;
var Value: String);
procedure TPathEditorDialog.DirectoryEditAcceptDirectory(Sender: TObject; var Value: String);
begin
DirectoryEdit.Text := BaseRelative(Value);
{$IFDEF LCLCarbon}
// Not auto-called on Mac. ToDo: fix it in the component instead of here.
DirectoryEdit.OnChange(nil);
{$ENDIF}
end;
procedure TPathEditorDialog.DeleteInvalidPathsButtonClick(Sender: TObject);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment