summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-26 00:11:38 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-06-26 18:30:27 +0200
commit46a57b8ece00f4e5ad2a028362af1cfa8f4524c3 (patch)
tree1966dbcb5715449065d436f5e0e2aba2111fded5 /rbutil/rbutilqt/rbutilqt.cpp
parent3214849f4eb1704167062838076089e78c63f85f (diff)
downloadrockbox-46a57b8ece00f4e5ad2a028362af1cfa8f4524c3.tar.gz
rockbox-46a57b8ece00f4e5ad2a028362af1cfa8f4524c3.tar.bz2
rockbox-46a57b8ece00f4e5ad2a028362af1cfa8f4524c3.zip
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
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 031fd70193..b62167a4e7 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -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();
}