mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Fix Gtk addtorrentdialog parent None error for single file torrents
This commit is contained in:
parent
669d10e6be
commit
bfa3564ba3
1 changed files with 4 additions and 3 deletions
|
@ -867,6 +867,7 @@ class AddTorrentDialog(component.Component):
|
||||||
parent = self.files_treestore.iter_parent(itr)
|
parent = self.files_treestore.iter_parent(itr)
|
||||||
file_path = os.path.join(self.get_file_path(parent), new_text)
|
file_path = os.path.join(self.get_file_path(parent), new_text)
|
||||||
# Don't rename if filename exists
|
# Don't rename if filename exists
|
||||||
|
if parent:
|
||||||
for row in self.files_treestore[parent].iterchildren():
|
for row in self.files_treestore[parent].iterchildren():
|
||||||
if new_text == row[1]:
|
if new_text == row[1]:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue