summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-04-23 19:38:04 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-04-23 19:38:04 +0000
commit0d4a1f1ad34a4fb9a8a853fe94b41071def7546e (patch)
tree60a65241f00712e668aeab1df436b92d22a25a19 /rbutil/rbutilqt/rbutilqt.cpp
parent1c770046b681bac17e2d14abf9414d26d6075733 (diff)
downloadrockbox-0d4a1f1ad34a4fb9a8a853fe94b41071def7546e.tar.gz
rockbox-0d4a1f1ad34a4fb9a8a853fe94b41071def7546e.tar.bz2
rockbox-0d4a1f1ad34a4fb9a8a853fe94b41071def7546e.zip
Don't retrieve the mountpoint value for each file when displaying the installed files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25701 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 135e5100d4..1c27d48508 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -1160,8 +1160,8 @@ void RbUtilQt::updateInfo()
{
qDebug() << "[RbUtil] updating server info";
- QSettings log(RbSettings::value(RbSettings::Mountpoint).toString()
- + "/.rockbox/rbutil.log", QSettings::IniFormat, this);
+ QString mp = RbSettings::value(RbSettings::Mountpoint).toString();
+ QSettings log(mp + "/.rockbox/rbutil.log", QSettings::IniFormat, this);
QStringList groups = log.childGroups();
QList<QTreeWidgetItem *> items;
QTreeWidgetItem *w, *w2;
@@ -1197,7 +1197,7 @@ void RbUtilQt::updateInfo()
for(int b = 0; b < keys.size(); b++) {
QString file;
- file = RbSettings::value(RbSettings::Mountpoint).toString() + "/" + keys.at(b);
+ file = mp + "/" + keys.at(b);
if(QFileInfo(file).isDir())
continue;
w2 = new QTreeWidgetItem(w, QStringList() << "/"