summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp')
-rw-r--r--src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp b/src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp
index 5fb64a7..ff92f0b 100644
--- a/src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp
+++ b/src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp
@@ -3293,7 +3293,7 @@ QString QWebPage::userAgentForUrl(const QUrl& url) const
if (view())
locale = view()->locale();
QString name = locale.name();
- name[2] = QLatin1Char('-');
+ name.replace(QLatin1Char('_'), QLatin1Char('-'));
ua.append(name);
ua.append(QLatin1String(") "));