summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-04-24 23:02:24 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-04-24 23:02:24 +0200
commitfa6563b7b825eb9c958a2fa1f8c2905af8b31425 (patch)
tree0475bcca03647a9045fdc24db9b30f8d6162acd4 /rbutil/rbutilqt/configure.cpp
parent885db72b8b4546572aaf7da08078176d2662d2d9 (diff)
downloadrockbox-fa6563b7b825eb9c958a2fa1f8c2905af8b31425.tar.gz
rockbox-fa6563b7b825eb9c958a2fa1f8c2905af8b31425.tar.bz2
rockbox-fa6563b7b825eb9c958a2fa1f8c2905af8b31425.zip
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
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 470a5a5d6b..440d3dd8d4 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -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>";