summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtkui/ipcinterface.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2012-09-27 23:44:38 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2012-11-22 23:38:27 +0000
commit582c6735d0387d599daba4811cd9da90a7e01dc0 (patch)
tree8f0a33253b6830e9a5763ad5c85ac0469b572cd5 /deluge/ui/gtkui/ipcinterface.py
parent5d43c2ac944f318874470a3beda951174faa01e1 (diff)
downloaddeluge-582c6735d0.zip
deluge-582c6735d0.tar.gz
deluge-582c6735d0.tar.bz2
Fix #2100 : Add option not to bring main window to front when adding torrents through ipcinterface
Diffstat (limited to 'deluge/ui/gtkui/ipcinterface.py')
-rw-r--r--deluge/ui/gtkui/ipcinterface.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/deluge/ui/gtkui/ipcinterface.py b/deluge/ui/gtkui/ipcinterface.py
index 610b4fc..4a89150 100644
--- a/deluge/ui/gtkui/ipcinterface.py
+++ b/deluge/ui/gtkui/ipcinterface.py
@@ -58,7 +58,8 @@ import twisted.internet.error
class IPCProtocolServer(Protocol):
def dataReceived(self, data):
data = rencode.loads(data)
- component.get("MainWindow").present()
+ if not data or config["focus_main_window_on_add"]:
+ component.get("MainWindow").present()
process_args(data)
class IPCProtocolClient(Protocol):