diff --git a/src/calibre/gui2/dialogs/conversion_error.ui b/src/calibre/gui2/dialogs/conversion_error.ui index 38d215269d..d3963df860 100644 --- a/src/calibre/gui2/dialogs/conversion_error.ui +++ b/src/calibre/gui2/dialogs/conversion_error.ui @@ -13,7 +13,8 @@ ERROR - :/library + + :/library:/library @@ -34,7 +35,7 @@ Qt::Vertical - + 20 40 @@ -42,10 +43,50 @@ + + + + QDialogButtonBox::Ok + + + - + + + buttonBox + accepted() + ConversionErrorDialog + accept() + + + 246 + 491 + + + 64 + 497 + + + + + buttonBox + rejected() + ConversionErrorDialog + reject() + + + 165 + 480 + + + 32 + 428 + + + + diff --git a/src/calibre/gui2/dialogs/user_profiles.py b/src/calibre/gui2/dialogs/user_profiles.py index b949a5cfbb..9976d2180c 100644 --- a/src/calibre/gui2/dialogs/user_profiles.py +++ b/src/calibre/gui2/dialogs/user_profiles.py @@ -186,8 +186,9 @@ class %(classname)s(%(base_class)s): files = choose_files(self, 'recipe loader dialog', _('Choose a recipe file'), filters=[(_('Recipes'), '*.py')], all_files=False, select_only_single_file=True) if files: file = files[0] - src = open(file, 'rb').read().decode('utf-8') + raise Exception('a') try: + src = open(file, 'rb').read().decode('utf-8') title = compile_recipe(src).title except Exception, err: error_dialog(self, _('Invalid input'),