mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 23:18:40 +00:00
[#2729] [Blocklist] Fix plugin lockup with empty url
This commit is contained in:
parent
7315255831
commit
df57c7f924
2 changed files with 3 additions and 1 deletions
|
@ -135,6 +135,8 @@ class Core(CorePluginBase):
|
||||||
:rtype: Deferred
|
:rtype: Deferred
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if not self.config["url"]:
|
||||||
|
return
|
||||||
|
|
||||||
# Reset variables
|
# Reset variables
|
||||||
self.filename = None
|
self.filename = None
|
||||||
|
|
|
@ -138,7 +138,7 @@ class GtkUI(GtkPluginBase):
|
||||||
|
|
||||||
def _on_apply_prefs(self):
|
def _on_apply_prefs(self):
|
||||||
config = {}
|
config = {}
|
||||||
config["url"] = self.glade.get_widget("entry_url").get_text()
|
config["url"] = self.glade.get_widget("entry_url").get_text().strip()
|
||||||
config["check_after_days"] = self.glade.get_widget("spin_check_days").get_value_as_int()
|
config["check_after_days"] = self.glade.get_widget("spin_check_days").get_value_as_int()
|
||||||
config["load_on_start"] = self.glade.get_widget("chk_import_on_start").get_active()
|
config["load_on_start"] = self.glade.get_widget("chk_import_on_start").get_active()
|
||||||
client.blocklist.set_config(config)
|
client.blocklist.set_config(config)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue