[#2476] [GTKUI] Fix adding mistyped trackers urls
This commit is contained in:
parent
d1daeb4cb0
commit
267d331fac
|
@ -432,6 +432,7 @@ class CreateTorrentDialog(object):
|
|||
self.config['createtorrent.trackers'] = lines
|
||||
log.debug('lines: %s', lines)
|
||||
for l in lines:
|
||||
l = l.replace('\\', '/') # Fix mistyped urls.
|
||||
if is_url(l):
|
||||
trackers.append(l)
|
||||
|
||||
|
|
|
@ -220,6 +220,7 @@ class EditTrackersDialog(object):
|
|||
b = textview.get_buffer()
|
||||
lines = b.get_text(b.get_start_iter(), b.get_end_iter()).strip().split('\n')
|
||||
for l in lines:
|
||||
l = l.replace('\\', '/') # Fix mistyped urls.
|
||||
if is_url(l):
|
||||
trackers.append(l)
|
||||
|
||||
|
|
Loading…
Reference in New Issue