summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/install.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/install.cpp')
-rw-r--r--rbutil/rbutilqt/install.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/install.cpp b/rbutil/rbutilqt/install.cpp
index 91a9534061..a537cb2cbe 100644
--- a/rbutil/rbutilqt/install.cpp
+++ b/rbutil/rbutilqt/install.cpp
@@ -81,8 +81,13 @@ void Install::accept()
}
if(ui.radioStable->isChecked()) {
- file = "stable"; // FIXME: this is wrong!
- fileName = QString("rockbox.zip");
+ file = QString("%1/rockbox-%2-%3.zip")
+ .arg(devices->value("download_url").toString(),
+ devices->value("last_release").toString(),
+ userSettings->value("defaults/platform").toString());
+ fileName = QString("rockbox-%1-%2.zip")
+ .arg(devices->value("last_release").toString(),
+ userSettings->value("defaults/platform").toString());
userSettings->setValue("defaults/build", "stable");
}
else if(ui.radioArchived->isChecked()) {