9000-search-duck.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. diff --git a/src/qtui/chatviewsettings.cpp b/src/qtui/chatviewsettings.cpp
  2. index 51435018..e4dbe734 100644
  3. --- a/src/qtui/chatviewsettings.cpp
  4. +++ b/src/qtui/chatviewsettings.cpp
  5. @@ -90,7 +90,7 @@ void ChatViewSettings::enableSenderBrackets(bool enabled)
  6. QString ChatViewSettings::webSearchUrlFormatString() const
  7. {
  8. - return localValue("WebSearchUrlFormat", "https://www.google.com/search?q=%s").toString();
  9. + return localValue("WebSearchUrlFormat", "https://html.duckduckgo.com/html/?q=%s").toString();
  10. }
  11. void ChatViewSettings::setWebSearchUrlFormatString(const QString& format)
  12. --
  13. 2.37.3
  14. diff --git a/src/qtui/settingspages/chatviewsettingspage.ui b/src/qtui/settingspages/chatviewsettingspage.ui
  15. index 99f568a..7d13fff 100644
  16. --- a/src/qtui/settingspages/chatviewsettingspage.ui
  17. +++ b/src/qtui/settingspages/chatviewsettingspage.ui
  18. @@ -244,7 +244,7 @@
  19. <string notr="true">WebSearchUrlFormat</string>
  20. </property>
  21. <property name="defaultValue" stdset="0">
  22. - <string>https://www.google.com/search?q=%s</string>
  23. + <string>https://html.duckduckgo.com/html/?q=%s</string>
  24. </property>
  25. </widget>
  26. </item>