Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ctrl+F crashes when last tab is closed #1819

Merged

Conversation

shenlebantongying
Copy link
Collaborator

@shenlebantongying shenlebantongying commented Oct 12, 2024

The root issue is

connect( ui.searchInPageAction, &QAction::triggered, this, [ this, view ]() {

The 3rd this is mainwinidow, while theconnect is only valid during the current view.

fix https://forum.freemdict.com/t/topic/11495/3513

The workaround for scanpopup is not invalidated by this PR.

@shenlebantongying shenlebantongying changed the title fix: ctrl+F crashes when no valid tab exists fix: ctrl+F crashes when last tab is closed Oct 12, 2024
@shenlebantongying shenlebantongying enabled auto-merge (squash) October 12, 2024 13:39
@shenlebantongying shenlebantongying merged commit ef57526 into xiaoyifang:staged Oct 12, 2024
6 of 7 checks passed
@shenlebantongying shenlebantongying deleted the fix/ctrl_f-crash branch October 14, 2024 01:07
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.

1 participant