Skip to content

Allow KCompletion subclasses to block autosuggestion if they want to

I have created a new shouldAutoSuggest property on KCompletion.

The getter is public and initial value defaults to "true", so current default behavior is unchanged. The setter is protected. Subclasses may implement their own logic and set it to "false" to prevent the auto-suggestion from happening in special cases.

I submitted another MR on KIO where KUrlCompletion makes use of this new property to block the auto-suggestion when the user types an exact directory path.

Together these two MRs will ultimately fix the bug in Dolphin where users type in a full directory path with the trailing slash (or TAB+ENTER) but are instead taken to the first child directory of the directory they typed.

CCBUG: 420966

Edited by Eduardo Cruz

Merge request reports