Fix bug with ipod bootloader installation, found by linuxstb
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12440 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e863d595b5
commit
1df59e1a09
1 changed files with 7 additions and 4 deletions
|
@ -148,8 +148,8 @@ wxIpodLocationPage::wxIpodLocationPage(wxWizard* parent) : wxWizardPageSimple(pa
|
|||
// Header text
|
||||
IpodLocationLabel = new wxStaticText(this, wxID_ANY,
|
||||
wxT("Rockbox utility needs to know the device where your ipod\n"
|
||||
"device is located on your computer. Rockbox utility\n"
|
||||
"has detected the following location:"));
|
||||
"device is located on your computer. Use the\n"
|
||||
"Scan Button:"));
|
||||
WxBoxSizer1->Add(IpodLocationLabel,0,wxGROW | wxALL, 5);
|
||||
|
||||
// device location
|
||||
|
@ -208,13 +208,16 @@ void wxIpodLocationPage::OnIpodLocationBtn(wxCommandEvent& event)
|
|||
wxLogVerbose("=== begin wxIpodLocationPage::OnIpodLocationBtn");
|
||||
struct ipod_t ipod;
|
||||
int n = ipod_scan(&ipod);
|
||||
gv->curbootloader="";
|
||||
|
||||
gv->curbootloader="bootloader-";
|
||||
gv->curbootloader.Append(ipod.targetname);
|
||||
if(n == 0)
|
||||
IpodLocationText->SetLabel("no Ipod found");
|
||||
else if( n==1)
|
||||
{
|
||||
gv->curbootloader="bootloader-";
|
||||
gv->curbootloader.Append(ipod.targetname);
|
||||
IpodLocationText->SetLabel(ipod.modelstr);
|
||||
}
|
||||
else
|
||||
IpodLocationText->SetLabel("More than 1 Ipod found");
|
||||
|
||||
|
|
Loading…
Reference in a new issue