mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Refresh mountpoint from UI before checking for existence.
Fixes "invalid mountpoint" errors that could happen if the preselected mountpoint was never changed and no previous configuration available. Change-Id: Ief5f1b7a0b24267a03028f5d402e8763a5a3fc70
This commit is contained in:
parent
885db72b8b
commit
fa6563b7b8
1 changed files with 3 additions and 0 deletions
|
|
@ -151,6 +151,9 @@ void Config::accept()
|
|||
|
||||
RbSettings::setValue(RbSettings::Language, language);
|
||||
|
||||
// make sure mountpoint is read from dropdown box
|
||||
updateMountpoint(ui.mountPoint->currentIndex());
|
||||
|
||||
// mountpoint
|
||||
if(mountpoint.isEmpty()) {
|
||||
errormsg += "<li>" + tr("No mountpoint given") + "</li>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue