From d793835a7e2144b8e17ff035ec764b268a75b122 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 11 Sep 2007 21:27:50 +0000 Subject: [PATCH] add try/except to catch crash if the plugin configuration window is closed --- src/dialogs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index d7b58442c..3b839f75a 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -288,7 +288,10 @@ class PreferencesDlg: if plugin_value: self.plugins.enable_plugin(plugin_name) config = self.plugins.configurable_plugin(plugin_name) - self.glade.get_widget("plugin_conf").set_sensitive(config) + 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)