mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
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:
parent
99408dd45e
commit
b7fe90aa36
2 changed files with 3 additions and 3 deletions
|
|
@ -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*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue