1
0
Fork 0
forked from len0rd/rockbox

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:
Dominik Riebeling 2012-04-24 23:02:24 +02:00
parent 885db72b8b
commit fa6563b7b8

View file

@ -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>";