From 09febcb743ce5440699ce843e7275b208f6298d1 Mon Sep 17 00:00:00 2001 From: nowrep Date: Sat, 22 Dec 2012 12:20:23 +0100 Subject: [PATCH] Qt5: No longer use fake user agent on google sites QtWebKit version Qt5 is current enough to handle well all google apps. --- src/lib/other/useragentmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/other/useragentmanager.cpp b/src/lib/other/useragentmanager.cpp index 5e7254acc..f52002f00 100644 --- a/src/lib/other/useragentmanager.cpp +++ b/src/lib/other/useragentmanager.cpp @@ -61,9 +61,11 @@ QString UserAgentManager::userAgentForUrl(const QUrl &url) const } } +#if QT_VERSION < 0x050000 if (host.contains(QLatin1String("google"))) { return m_fakeUserAgent; } +#endif return m_globalUserAgent; }