From 398aaec063d3c59fb9a22d56f29dec80d6659e88 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Thu, 22 Oct 2009 16:58:36 +0200 Subject: GUI: small fixes --- src/Gui/CCMainWindow.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Gui/CCMainWindow.py') diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index e68d2fbb..34c2defe 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -154,9 +154,12 @@ class MainWindow(): def on_miSettings_clicked(self, widget): dialog = SettingsDialog(self.window, self.ccdaemon) - dialog.hydrate() + try: + dialog.hydrate() + except Exception, e: + gui_error_message(_("Can't show the settings dialog\n%s" % e)) + return dialog.show() - self.ccdaemon.getSettings() def warning_cb(self, daemon, message=None): # try to hide the progressbar, we dont really care if it was visible .. -- cgit