add try/except to catch crash if the plugin configuration window is closed

This commit is contained in:
Marcos Pinto 2007-09-11 21:27:50 +00:00
parent 120b3335b4
commit d793835a7e
1 changed files with 4 additions and 1 deletions

View File

@ -288,7 +288,10 @@ class PreferencesDlg:
if plugin_value:
self.plugins.enable_plugin(plugin_name)
config = self.plugins.configurable_plugin(plugin_name)
try:
self.glade.get_widget("plugin_conf").set_sensitive(config)
except:
pass
else:
self.plugins.disable_plugin(plugin_name)
self.glade.get_widget("plugin_conf").set_sensitive(False)