summaryrefslogtreecommitdiff
path: root/libre/quassel/9000-search-duck.patch
blob: 9fc77b7248bc6fbb7291289c2993435ecbdda5f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/qtui/chatviewsettings.h b/src/qtui/chatviewsettings.h
index 838891b..4d28926 100644
--- a/src/qtui/chatviewsettings.h
+++ b/src/qtui/chatviewsettings.h
@@ -104,7 +104,7 @@ public:
      */
     inline void enableSenderBrackets(bool enabled) { setLocalValue("ShowSenderBrackets", enabled); }

-    inline QString webSearchUrlFormatString() { return localValue("WebSearchUrlFormat", "https://www.google.com/search?q=%s").toString(); }
+    inline QString webSearchUrlFormatString() { return localValue("WebSearchUrlFormat", "https://duckduckgo.com/?q=%s").toString(); }
     inline void setWebSearchUrlFormatString(const QString &format) { setLocalValue("WebSearchUrlFormat", format); }
 };

diff --git a/src/qtui/settingspages/chatviewsettingspage.ui b/src/qtui/settingspages/chatviewsettingspage.ui
index 99f568a..7d13fff 100644
--- a/src/qtui/settingspages/chatviewsettingspage.ui
+++ b/src/qtui/settingspages/chatviewsettingspage.ui
@@ -244,7 +244,7 @@
         <string notr="true">WebSearchUrlFormat</string>
        </property>
        <property name="defaultValue" stdset="0">
-        <string>https://www.google.com/search?q=%s</string>
+        <string>https://duckduckgo.com/?q=%s</string>
        </property>
       </widget>
      </item>