From 9f5f8540112e1178aa54a350f29b542c5de7df68 Mon Sep 17 00:00:00 2001 From: Noah Davis Date: Tue, 14 Jul 2020 14:16:55 -0400 Subject: [PATCH] [KUrlCompletion] Don't append / to completed folders This is a quick fix to a usability issue. Autosuggestions are made after / is appended to the folder name and pressing enter completes the autosuggetion. These 2 things are not wrong on their own, but they mess with people's heads when combined in this way. This change prevents the autosuggetion from being started when completing directories since it's only activated after the / is appended. A better, but not so quick fix would be to make it so pressing enter only completes an autosuggestion after a character has been added after the / --- src/widgets/kurlcompletion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/kurlcompletion.cpp b/src/widgets/kurlcompletion.cpp index 4fccabfcf..5e49d373d 100644 --- a/src/widgets/kurlcompletion.cpp +++ b/src/widgets/kurlcompletion.cpp @@ -576,7 +576,7 @@ void KUrlCompletionPrivate::init() KConfigGroup cg(KSharedConfig::openConfig(), "URLCompletion"); url_auto_completion = cg.readEntry("alwaysAutoComplete", true); - popup_append_slash = cg.readEntry("popupAppendSlash", true); + popup_append_slash = cg.readEntry("popupAppendSlash", false); onlyLocalProto = cg.readEntry("LocalProtocolsOnly", false); q->setIgnoreCase(true);