Bug 417048

Summary: Don't show "Search for 'something' with" in context menu if Web shortcuts are disabled
Product: [Applications] konsole Reporter: Matej Mrenica <matejm98mthw>
Component: copy-pasteAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: wishlist CC: a.samirh78
Priority: NOR    
Version: 19.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matej Mrenica 2020-02-02 08:29:35 UTC
SUMMARY
...otherwise this option doesn't do anything. Either add a warning that one needs to enable Web shortcuts or grey this option out.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66
Qt Version: 5.14.1
Comment 1 Kurt Hindenburg 2020-03-28 15:45:14 UTC
I agree; I'll have to see how to determine if web shortcuts are disabled in system  settings.
Comment 2 Ahmad Samir 2020-03-28 15:59:32 UTC
IIUC, that would be this https://cgit.kde.org/kio.git/tree/src/urifilters/ikws/ikwsopts.cpp#n324
Comment 3 Kurt Hindenburg 2020-03-28 16:33:37 UTC
(In reply to Ahmad Samir from comment #2)
> IIUC, that would be this
> https://cgit.kde.org/kio.git/tree/src/urifilters/ikws/ikwsopts.cpp#n324

Yea, I really dislike have to readConfig for stuff like this.
Comment 4 Kurt Hindenburg 2020-04-28 15:07:08 UTC
Git commit 1b08f3058ae7dfb59778af0a885120dd75e7bf01 by Kurt Hindenburg.
Committed on 28/04/2020 at 14:42.
Pushed by hindenburg into branch 'master'.

Do not show "Search for" if web shortcuts are disabled

Before showing menu, check System Settings to see if user has disabled
"Enable Web shortcuts".

M  +6    -0    src/SessionController.cpp

https://invent.kde.org/kde/konsole/commit/1b08f3058ae7dfb59778af0a885120dd75e7bf01
Comment 5 Kurt Hindenburg 2020-04-29 02:27:55 UTC
Git commit 76776c6b59f4adec7ba49b4da8b7fa6f1c8ec49a by Kurt Hindenburg.
Committed on 29/04/2020 at 02:23.
Pushed by hindenburg into branch 'release/20.04'.

Do not show "Search for" if web shortcuts are disabled

Before showing menu, check System Settings to see if user has disabled
"Enable Web shortcuts".
(cherry picked from commit 1b08f3058ae7dfb59778af0a885120dd75e7bf01)

M  +6    -0    src/SessionController.cpp

https://invent.kde.org/kde/konsole/commit/76776c6b59f4adec7ba49b4da8b7fa6f1c8ec49a