plugin_installer: Fix potential crash on cert verify failure
This commit is contained in:
@@ -317,7 +317,9 @@ class PluginInstaller(GajimPlugin):
|
|||||||
for i in range(len(self.available_plugins_model)):
|
for i in range(len(self.available_plugins_model)):
|
||||||
self.available_plugins_model[i][C_UPGRADE] = False
|
self.available_plugins_model[i][C_UPGRADE] = False
|
||||||
self.progressbar.hide()
|
self.progressbar.hide()
|
||||||
|
def warn():
|
||||||
WarningDialog(_('Ftp error'), error_text, self.window)
|
WarningDialog(_('Ftp error'), error_text, self.window)
|
||||||
|
GLib.idle_add(warn)
|
||||||
|
|
||||||
def on_plugin_downloaded(self, widget, plugin_dirs):
|
def on_plugin_downloaded(self, widget, plugin_dirs):
|
||||||
dialog = HigDialog(None, Gtk.MessageType.INFO, Gtk.ButtonsType.OK,
|
dialog = HigDialog(None, Gtk.MessageType.INFO, Gtk.ButtonsType.OK,
|
||||||
|
|||||||
Reference in New Issue
Block a user