[Qt] Assertion failure in Search dialog
Juha Manninen
juha.manninen62 at gmail.com
Tue Dec 21 12:58:12 CET 2010
in speedbutton.inc, line 477, there is:
---
function TCustomSpeedButton.DialogChar(var Message: TLMKey): boolean;
begin
Result := False;
Assert(Message.Msg = LM_SYSCHAR, '*** Warning: non LM_SYSCHAR passed to
TCustomSpeedButton.DialogChar ! ***');
if not FShowAccelChar then Exit;
if IsAccel(Message.CharCode, Caption) then
begin
Result := True;
if GroupIndex <> 0 then
SetDown(not FDown);
Click;
end else
Result := inherited DialogChar(Message);
end;
---
My Lazarus is built with QT bindings. The assertion fails when I open the
Search dialog (Ctrl-F) and then press for example Enter or Ctrl-C.
Message.Msg is LM_CHAR (258) instead of LM_SYSCHAR (262).
With GTK2 bindings it works ok.
Does this indicate a real error or is the assertion wrong?
Somebody please fix or remove it.
Juha
More information about the Qt
mailing list