Only update mountpoint on Accept when empty.

Always updating the mountpoint overwrites a manually entered mountpoint (only
available in debug builds).

Change-Id: I6298cb873496d66f4836f219e89ca8ae17261de9
This commit is contained in:
Dominik Riebeling 2012-04-30 22:06:59 +02:00
parent d7ead706a7
commit a32cbf3346

View file

@ -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()) {