spktoolbar: Clean-up

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6173 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-02-05 08:23:23 +00:00
parent 08713d9bf5
commit e6b9f9169d

View File

@ -77,7 +77,6 @@ type
FGroupIndex: Integer;
FAllowAllUp: Boolean;
FDropdownMenu: TPopupMenu;
FMouseUp: Boolean;
// *** Drawing support ***
// The task of the method in inherited classes is to calculate the
@ -420,7 +419,7 @@ begin
if Assigned(FOnClick) then
FOnClick(Self);
// then trigger the Action
if (not (csDesigning in ComponentState)) and (FActionLink <> nil) then //and not FMouseUp then
if (not (csDesigning in ComponentState)) and (FActionLink <> nil) then
FActionLink.Execute(Self);
end;
@ -705,9 +704,7 @@ begin
begin
if FButtonKind in [bkButton, bkButtonDropdown, bkToggle] then
begin
FMouseUp := true;
Click;
FMouseUp := false;
FButtonState := bsBtnHottrack;
if Assigned(FToolbarDispatch) then
FToolbarDispatch.NotifyVisualsChanged;