mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Change UserAgent: Don't append QupZilla string to new user agent
- some pages may misbehave
This commit is contained in:
parent
fe2b3133e5
commit
dd0df9042f
@ -181,12 +181,7 @@ bool WebPage::isLoading() const
|
|||||||
|
|
||||||
void WebPage::setUserAgent(const QString &agent)
|
void WebPage::setUserAgent(const QString &agent)
|
||||||
{
|
{
|
||||||
if (!agent.isEmpty()) {
|
s_userAgent = agent;
|
||||||
s_userAgent = QString("%1 (QupZilla %2)").arg(agent, QupZilla::VERSION);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
s_userAgent = agent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebPage::urlChanged(const QUrl &url)
|
void WebPage::urlChanged(const QUrl &url)
|
||||||
|
Loading…
Reference in New Issue
Block a user