1
0
Fork 0
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:
Dominik Riebeling 2012-06-26 00:11:38 +02:00
parent 3214849f4e
commit 46a57b8ece

View file

@ -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();
}