mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 21:55:10 -05:00
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
This commit is contained in:
parent
1c770046b6
commit
0d4a1f1ad3
1 changed files with 3 additions and 3 deletions
|
|
@ -1160,8 +1160,8 @@ void RbUtilQt::updateInfo()
|
||||||
{
|
{
|
||||||
qDebug() << "[RbUtil] updating server info";
|
qDebug() << "[RbUtil] updating server info";
|
||||||
|
|
||||||
QSettings log(RbSettings::value(RbSettings::Mountpoint).toString()
|
QString mp = RbSettings::value(RbSettings::Mountpoint).toString();
|
||||||
+ "/.rockbox/rbutil.log", QSettings::IniFormat, this);
|
QSettings log(mp + "/.rockbox/rbutil.log", QSettings::IniFormat, this);
|
||||||
QStringList groups = log.childGroups();
|
QStringList groups = log.childGroups();
|
||||||
QList<QTreeWidgetItem *> items;
|
QList<QTreeWidgetItem *> items;
|
||||||
QTreeWidgetItem *w, *w2;
|
QTreeWidgetItem *w, *w2;
|
||||||
|
|
@ -1197,7 +1197,7 @@ void RbUtilQt::updateInfo()
|
||||||
|
|
||||||
for(int b = 0; b < keys.size(); b++) {
|
for(int b = 0; b < keys.size(); b++) {
|
||||||
QString file;
|
QString file;
|
||||||
file = RbSettings::value(RbSettings::Mountpoint).toString() + "/" + keys.at(b);
|
file = mp + "/" + keys.at(b);
|
||||||
if(QFileInfo(file).isDir())
|
if(QFileInfo(file).isDir())
|
||||||
continue;
|
continue;
|
||||||
w2 = new QTreeWidgetItem(w, QStringList() << "/"
|
w2 = new QTreeWidgetItem(w, QStringList() << "/"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue