[#2729] [Blocklist] Fix plugin lockup with empty url
This commit is contained in:
parent
e1548cc974
commit
084329f9f1
|
@ -123,6 +123,8 @@ class Core(CorePluginBase):
|
|||
Deferred: A Deferred which fires when the blocklist has been imported.
|
||||
|
||||
"""
|
||||
if not self.config["url"]:
|
||||
return
|
||||
|
||||
# Reset variables
|
||||
self.filename = None
|
||||
|
|
|
@ -121,7 +121,7 @@ class GtkUI(GtkPluginBase):
|
|||
|
||||
def _on_apply_prefs(self):
|
||||
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["load_on_start"] = self.glade.get_widget("chk_import_on_start").get_active()
|
||||
config["whitelisted"] = [ip[0] for ip in self.whitelist_model if ip[0] != 'IP HERE']
|
||||
|
|
Loading…
Reference in New Issue