Skip to content

KUrlCompletion blocks autosuggestion from happening if the input is an exact directory path

Eduardo Cruz requested to merge ecruz/kio:dirpaths_autosuggestion_taming into master

This MR depends on another MR submitted to KCompletion. Without it, it won't compile.

In the above MR I have created a new shouldAutoSuggest property on KCompletion base class. Subclasses may set it to implement their own logic to prevent the auto-suggestion from happening in special cases.

Here, I am using this new property on KUrlCompletion class. It is preventing auto-suggestion from happening if we typed in an exact directory path.

This ultimately fixes the bug where users type in a full directory path with the trailing slash (or do TAB+ENTER) and are incorrectly taken to the first child directory of the directory they typed. This bug happens on Dolphin when using the "Dropdown List & Automatic" text completion method on the address bar.

BUG: 420966

Edited by Eduardo Cruz

Merge request reports