mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Add setting the User-Agent for http requests to HttpGet class. Make rbutil set its own user agent string.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18366 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
76a3959ac2
commit
90f92b216b
4 changed files with 29 additions and 12 deletions
|
|
@ -57,7 +57,8 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
|
|||
|
||||
settings = new RbSettings();
|
||||
settings->open();
|
||||
|
||||
HttpGet::setGlobalUserAgent("rbutil/"VERSION);
|
||||
|
||||
m_gotInfo = false;
|
||||
|
||||
// manual tab
|
||||
|
|
@ -241,7 +242,7 @@ void RbUtilQt::about()
|
|||
QString rline = r.readAll();
|
||||
about.browserCredits->insertPlainText(rline);
|
||||
about.browserCredits->moveCursor(QTextCursor::Start, QTextCursor::MoveAnchor);
|
||||
QString title = QString("<b>The Rockbox Utility</b><br/>Version %1").arg(VERSION);
|
||||
QString title = QString("<b>The Rockbox Utility</b><br/>Version %1").arg(FULLVERSION);
|
||||
about.labelTitle->setText(title);
|
||||
about.labelHomepage->setText("<a href='http://www.rockbox.org'>http://www.rockbox.org</a>");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue