mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-01 03:20:44 +00:00
When no filename is supplied in torrent add dialog, treat is as cancel and don't display an error message
This commit is contained in:
parent
5a096768e0
commit
d86168cb41
@ -560,6 +560,8 @@ class AllTorrents(BaseMode, component.Component):
|
||||
self.report_message("Torrent Add Report",msg)
|
||||
|
||||
def _do_add(self, result):
|
||||
if not result["file"]:
|
||||
return
|
||||
log.debug("Adding Torrent(s): %s (dl path: %s) (paused: %d)",result["file"],result["path"],result["add_paused"])
|
||||
ress = {"succ":0,
|
||||
"fail":0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user