The mountpoint is stored with normalized separators.

Make sure to convert it on reading to avoid not finding it even if stored with
native separators in the configuration. Fix a warning on Windows.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30145 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-07-17 08:08:51 +00:00
parent 99408dd45e
commit b7fe90aa36
2 changed files with 3 additions and 3 deletions

View file

@ -278,7 +278,7 @@ void Config::setUserSettings()
// devices tab
refreshMountpoint();
mountpoint = RbSettings::value(RbSettings::Mountpoint).toString();
mountpoint = QDir::toNativeSeparators(RbSettings::value(RbSettings::Mountpoint).toString());
setMountpoint(mountpoint);
// cache tab
@ -426,7 +426,7 @@ void Config::updateTtsState(int index)
ui.configTTSstatusimg->setPixmap(QPixmap(QString::fromUtf8(":/icons/dialog-error.png")));
ui.testTTS->setEnabled(false);
}
delete tts; /* Config objects are never deleted (in fact, they are leaked..), so we can't rely on QObject,
since that would delete the TTSBase instance on application exit*/
}