mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[GTK3] Fix config default_load_path keyerror
This commit is contained in:
parent
250afa6e0b
commit
ae0b072b75
1 changed files with 4 additions and 1 deletions
|
@ -675,7 +675,10 @@ class AddTorrentDialog(component.Component):
|
||||||
|
|
||||||
# Load the 'default_load_path' from the config
|
# Load the 'default_load_path' from the config
|
||||||
self.config = ConfigManager('gtk3ui.conf')
|
self.config = ConfigManager('gtk3ui.conf')
|
||||||
if self.config['default_load_path'] is not None:
|
if (
|
||||||
|
'default_load_path' in self.config
|
||||||
|
and self.config['default_load_path'] is not None
|
||||||
|
):
|
||||||
chooser.set_current_folder(self.config['default_load_path'])
|
chooser.set_current_folder(self.config['default_load_path'])
|
||||||
|
|
||||||
# Run the dialog
|
# Run the dialog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue