Don't allow pre-selecting stable build if the selected player doesn't have a release yet. Fixes wrong preselection if a stable build was installed before for a different target.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19841 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-01-24 10:02:18 +00:00
parent 9b0b6584f8
commit 4b387a4d07

View file

@ -295,7 +295,7 @@ void Install::setVersionStrings(QMap<QString, QString> ver)
// try to use the old selection first. If no selection has been made // try to use the old selection first. If no selection has been made
// in the past, use a preselection based on released status. // in the past, use a preselection based on released status.
if(settings->build() == "stable") if(settings->build() == "stable" && !version.value("rel_rev").isEmpty())
ui.radioStable->setChecked(true); ui.radioStable->setChecked(true);
else if(settings->build() == "archived") else if(settings->build() == "archived")
ui.radioArchived->setChecked(true); ui.radioArchived->setChecked(true);