mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue