Skip to content

Fix stale link activation from checkboxes#322

Closed
gazakov wants to merge 1 commit into
desktop-app:masterfrom
gazakov:fix-checkbox-stale-click-handler
Closed

Fix stale link activation from checkboxes#322
gazakov wants to merge 1 commit into
desktop-app:masterfrom
gazakov:fix-checkbox-stale-click-handler

Conversation

@gazakov

@gazakov gazakov commented Jul 17, 2026

Copy link
Copy Markdown

Fixes telegramdesktop/tdesktop#30982.

When a checkbox dialog opens over a link without mouse movement, the old link can remain the active ClickHandler. The checkbox then presses and activates that stale handler on release.

This refreshes the handler from the current checkbox position before recording the press.

Tested by building the lib_ui target in the TDesktop 7.0.1 macOS arm64 Release configuration.

@CLAassistant

CLAassistant commented Jul 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@john-preston

Copy link
Copy Markdown
Collaborator

Thanks!

@gazakov
gazakov marked this pull request as ready for review July 22, 2026 10:07
@gazakov

gazakov commented Jul 22, 2026

Copy link
Copy Markdown
Author

Thanks! I see this was fixed with a cleaner reuse of mouseMoveEvent. Closing as superseded.

@gazakov gazakov closed this Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking the notification checkbox in the pin dialog also opens the underlying link

3 participants