summaryrefslogtreecommitdiff
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-02-13 18:25:01 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-02-13 18:25:01 +0000
commitb30181a14bd18743af122442f50a031bdec2b829 (patch)
tree7ff1d84c1b3b5706637ba20fc40287822318e6b5 /rbutil
parent8f0c7908b01f67cf96058387d5f5b6e73268361b (diff)
rbutil: fix bug with wrong downloadURL for h10.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16306 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/install.cpp2
-rw-r--r--rbutil/rbutilqt/rbsettings.cpp9
-rw-r--r--rbutil/rbutilqt/rbsettings.h1
3 files changed, 11 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/install.cpp b/rbutil/rbutilqt/install.cpp
index b64e1637d6..1d265404ea 100644
--- a/rbutil/rbutilqt/install.cpp
+++ b/rbutil/rbutilqt/install.cpp
@@ -58,7 +58,7 @@ void Install::accept()
}
QString myversion;
- QString buildname = settings->curPlatform();
+ QString buildname = settings->curPlatformName();
if(ui.radioStable->isChecked()) {
file = QString("%1/rockbox-%2-%3.zip")
.arg(settings->downloadUrl(),
diff --git a/rbutil/rbutilqt/rbsettings.cpp b/rbutil/rbutilqt/rbsettings.cpp
index 2aa43f7f84..8b2569c365 100644
--- a/rbutil/rbutilqt/rbsettings.cpp
+++ b/rbutil/rbutilqt/rbsettings.cpp
@@ -190,6 +190,15 @@ QString RbSettings::curPlatform()
return userSettings->value("platform").toString();
}
+QString RbSettings::curPlatformName()
+{
+ QString platform = userSettings->value("platform").toString();
+ devices->beginGroup(platform);
+ QString name = devices->value("platform").toString();
+ devices->endGroup();
+ return name;
+}
+
QString RbSettings::curManual()
{
QString platform = userSettings->value("platform").toString();
diff --git a/rbutil/rbutilqt/rbsettings.h b/rbutil/rbutilqt/rbsettings.h
index 0613bea022..3218f30b0e 100644
--- a/rbutil/rbutilqt/rbsettings.h
+++ b/rbutil/rbutilqt/rbsettings.h
@@ -86,6 +86,7 @@ class RbSettings : public QObject
QString curBrand();
QString curName();
QString curPlatform();
+ QString curPlatformName();
QString curManual();
bool curReleased();
QString curBootloaderMethod();