summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() << "/"