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

Do not register QgsFilterLineEdit's child widgets as QgsOptionsDialogHighlightWidget #40480

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

uclaros
Copy link
Contributor

@uclaros uclaros commented Dec 7, 2020

Description

QgsSpinBox and QgsDoubleSpinBox use a QgsFilterLineEdit that has a button to clear its contents. This button is deleted
once it is pressed and re-created when the spinbox value has changed, so if it is registered for highlighting and the button is pressed QGIS crashes when trying to highlight search results!
This allows proper usage of QgsSpinbox and QgsDoubleSpinBox in options, as well as QgsFilterLineEdit (not used yet used in options)

Fixes #40111

…HighlightWidget

The clear value button might be deleted. This allows QgsFilterLineEdit, QgsSpinBox and QgsDoubleSpinbox usage in options.
@github-actions github-actions bot added this to the 3.18.0 milestone Dec 7, 2020
@nyalldawson
Copy link
Collaborator

Good catch!

@nyalldawson nyalldawson merged commit 5454bee into qgis:master Dec 7, 2020
@nyalldawson
Copy link
Collaborator

Backported as a0306ef

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.

Crash when searching in Options
2 participants