diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-04-23 19:38:04 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-04-23 19:38:04 +0000 |
commit | 0d4a1f1ad34a4fb9a8a853fe94b41071def7546e (patch) | |
tree | 60a65241f00712e668aeab1df436b92d22a25a19 /rbutil/rbutilqt/rbutilqt.cpp | |
parent | 1c770046b681bac17e2d14abf9414d26d6075733 (diff) | |
download | rockbox-0d4a1f1ad34a4fb9a8a853fe94b41071def7546e.tar.gz 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.cpp | 6 |
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() | |||
1160 | { | 1160 | { |
1161 | qDebug() << "[RbUtil] updating server info"; | 1161 | qDebug() << "[RbUtil] updating server info"; |
1162 | 1162 | ||
1163 | QSettings log(RbSettings::value(RbSettings::Mountpoint).toString() | 1163 | QString mp = RbSettings::value(RbSettings::Mountpoint).toString(); |
1164 | + "/.rockbox/rbutil.log", QSettings::IniFormat, this); | 1164 | QSettings log(mp + "/.rockbox/rbutil.log", QSettings::IniFormat, this); |
1165 | QStringList groups = log.childGroups(); | 1165 | QStringList groups = log.childGroups(); |
1166 | QList<QTreeWidgetItem *> items; | 1166 | QList<QTreeWidgetItem *> items; |
1167 | QTreeWidgetItem *w, *w2; | 1167 | QTreeWidgetItem *w, *w2; |
@@ -1197,7 +1197,7 @@ void RbUtilQt::updateInfo() | |||
1197 | 1197 | ||
1198 | for(int b = 0; b < keys.size(); b++) { | 1198 | for(int b = 0; b < keys.size(); b++) { |
1199 | QString file; | 1199 | QString file; |
1200 | file = RbSettings::value(RbSettings::Mountpoint).toString() + "/" + keys.at(b); | 1200 | file = mp + "/" + keys.at(b); |
1201 | if(QFileInfo(file).isDir()) | 1201 | if(QFileInfo(file).isDir()) |
1202 | continue; | 1202 | continue; |
1203 | w2 = new QTreeWidgetItem(w, QStringList() << "/" | 1203 | w2 = new QTreeWidgetItem(w, QStringList() << "/" |