From fe04199a5f76cc9919b9f8ee264f26d4edc61015 Mon Sep 17 00:00:00 2001 From: bluebrother Date: Fri, 23 Apr 2010 19:38:04 +0000 Subject: [PATCH] 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 --- rbutil/rbutilqt/rbutilqt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index 135e5100d..1c27d4850 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 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() << "/" -- 2.11.4.GIT