From a32cbf33465367cd6fe36d636da8d03485e9d15d Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 30 Apr 2012 22:06:59 +0200 Subject: [PATCH] Only update mountpoint on Accept when empty. Always updating the mountpoint overwrites a manually entered mountpoint (only available in debug builds). Change-Id: I6298cb873496d66f4836f219e89ca8ae17261de9 --- rbutil/rbutilqt/configure.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()) {