summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-04-30 22:06:59 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-04-30 22:11:49 +0200
commita32cbf33465367cd6fe36d636da8d03485e9d15d (patch)
tree4b83f83a082d6c63d36f3e4d40d33d1012bd3806 /rbutil/rbutilqt/configure.cpp
parentd7ead706a71a9f15089783f73afc4a40a3c6629b (diff)
downloadrockbox-a32cbf33465367cd6fe36d636da8d03485e9d15d.tar.gz
rockbox-a32cbf33465367cd6fe36d636da8d03485e9d15d.tar.bz2
rockbox-a32cbf33465367cd6fe36d636da8d03485e9d15d.zip
Only update mountpoint on Accept when empty.
Always updating the mountpoint overwrites a manually entered mountpoint (only available in debug builds). Change-Id: I6298cb873496d66f4836f219e89ca8ae17261de9
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 440d3dd8d4..9dee3f40c6 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -152,7 +152,9 @@ void Config::accept()
RbSettings::setValue(RbSettings::Language, language);
// make sure mountpoint is read from dropdown box
- updateMountpoint(ui.mountPoint->currentIndex());
+ if(mountpoint.isEmpty()) {
+ updateMountpoint(ui.mountPoint->currentIndex());
+ }
// mountpoint
if(mountpoint.isEmpty()) {