diff options
Diffstat (limited to 'src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebKit/qt/Api/qwebpage.cpp | 2 |
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 5fb64a7829..ff92f0bc97 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(") ")); |