summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtkui/ipcinterface.py
diff options
context:
space:
mode:
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):