[wxWidgets/wxWidgets] wxQt: Suppress the selection changed event on the first display of th… (PR #26194)

22 views
Skip to first unread message

AliKet

unread,
Feb 15, 2026, 4:52:19 AMFeb 15
to wx-...@googlegroups.com, Subscribed

…e wxListCtrl.

Since the wxEVT_LIST_ITEM_SELECTED event is not generated in the other ports when the wxListCtrl is shown for the first time, do not generate it under wxQt for consistency.

The artprov sample would assert here:

https://github.com/wxWidgets/wxWidgets/blob/4e4159836df134eb87d84e800ca11f45ed8e7d5e/src/common/artprov.cpp#L422-L428

because m_client were not initialized yet when this handler is executed:
https://github.com/wxWidgets/wxWidgets/blob/4e4159836df134eb87d84e800ca11f45ed8e7d5e/samples/artprov/artbrows.cpp#L241-L246

Initializing m_client before calling SetItemState() here
https://github.com/wxWidgets/wxWidgets/blob/4e4159836df134eb87d84e800ca11f45ed8e7d5e/samples/artprov/artbrows.cpp#L232-L236

fixes the problem, but will just hide the inconsistency of wxQt with the other ports.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26194

Commit Summary

  • 53d1041 wxQt: Suppress the selection changed event on the first display of the wxListCtrl.

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26194@github.com>

VZ

unread,
Feb 15, 2026, 9:18:28 AMFeb 15
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26194)

Thanks for fixing this, will merge soon.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26194/c3904533196@github.com>

VZ

unread,
Feb 16, 2026, 11:16:26 AMFeb 16
to wx-...@googlegroups.com, Subscribed

Closed #26194 via e34e54f.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26194/issue_event/22829897397@github.com>

Reply all
Reply to author
Forward
0 new messages