forked from len0rd/rockbox
Make Info widget update independent from tab index.
Since the Info widget is now a separate widget ask the tab widget about its index instead of hard coding it. Rename a variable to avoid shadowing while at it. Change-Id: I40c18387aacc780ac2051bb894db36247171c268
This commit is contained in:
parent
3214849f4e
commit
46a57b8ece
1 changed files with 4 additions and 9 deletions
|
@ -198,19 +198,14 @@ void RbUtilQt::trace(void)
|
|||
|
||||
void RbUtilQt::sysinfo(void)
|
||||
{
|
||||
Sysinfo info(this);
|
||||
info.exec();
|
||||
Sysinfo sysinfo(this);
|
||||
sysinfo.exec();
|
||||
}
|
||||
|
||||
void RbUtilQt::updateTabs(int count)
|
||||
{
|
||||
switch(count) {
|
||||
case 6:
|
||||
info->updateInfo();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if(count == ui.tabWidget->indexOf(info->parentWidget()))
|
||||
info->updateInfo();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue