fix, temp, option editor, convert error after color dialog

This commit is contained in:
Basile Burg 2015-03-12 23:45:46 +01:00
parent df7e91d1b5
commit 389ff729db
3 changed files with 7 additions and 3 deletions

View File

@ -713,6 +713,10 @@ var
begin
Handled := true;
{$IFDEF LINUX}
// TODO-cbugfix-linux: AV when closing document, current workaround may have other side effects.
// fixes some issues with property inspectors.
// option editor: IdleTimer seems to be used to refresh values after editing (e.g TColorPropertyEditor)
If not Focused then exit;
// fixes the error raised when the update is called after docClosing ()
// looks like a syncro error, needs more investigation.
Application.DisableIdleHandler;

View File

@ -35,7 +35,7 @@ inherited CEOptionEditorWidget: TCEOptionEditorWidget
Width = 140
Align = alLeft
AutoExpand = True
DefaultItemHeight = 18
DefaultItemHeight = 16
HideSelection = False
ReadOnly = True
ScrollBars = ssAutoBoth

View File

@ -20,8 +20,6 @@ type
observer: ICEEditableOptions;
end;
//TODO-cbugfix: linux only, a conversion error is raised after a color's been edited using the dialog color.
{ TCEOptionEditorWidget }
TCEOptionEditorWidget = class(TCEWidget)
@ -180,6 +178,8 @@ begin
.optionedEvent(oeeCancel);
end;
procedure TCEOptionEditorWidget.inspectorEditorFilter(Sender: TObject;aEditor:
TPropertyEditor; var aShow: boolean);
begin