Browse Source

Fix Transmission adapter folder setting handling.

pull/11/head
Eric Kok 12 years ago
parent
commit
1ef1c4f32e
  1. 2
      lib/src/org/transdroid/daemon/Transmission/TransmissionAdapter.java

2
lib/src/org/transdroid/daemon/Transmission/TransmissionAdapter.java

@ -462,7 +462,7 @@ public class TransmissionAdapter implements IDaemonAdapter {
*/ */
private String buildWebUIUrl() { private String buildWebUIUrl() {
String folder = "/transmission"; String folder = "/transmission";
if (settings.getFolder() == null || settings.getFolder().trim().isEmpty()) { if (settings.getFolder() != null && !settings.getFolder().trim().equals("")) {
// Allow the user's folder setting to override /transmission (as per Transmission's rpc-url option) // Allow the user's folder setting to override /transmission (as per Transmission's rpc-url option)
folder = settings.getFolder().trim(); folder = settings.getFolder().trim();
// Strip any trailing slashes // Strip any trailing slashes

Loading…
Cancel
Save