From 989f919a4048bf5d54115e33d48a7f4fef075b9e Mon Sep 17 00:00:00 2001 From: ingkebil Date: Wed, 2 Apr 2014 15:46:26 +0200 Subject: [PATCH] The 'Replace recipe?' question_dialog preference gets saved. --- src/calibre/gui2/dialogs/user_profiles.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/calibre/gui2/dialogs/user_profiles.py b/src/calibre/gui2/dialogs/user_profiles.py index de57298965..7ca2f95bd4 100644 --- a/src/calibre/gui2/dialogs/user_profiles.py +++ b/src/calibre/gui2/dialogs/user_profiles.py @@ -10,12 +10,11 @@ from calibre.web.feeds.news import AutomaticNewsRecipe from calibre.gui2.dialogs.user_profiles_ui import Ui_Dialog from calibre.gui2 import error_dialog, question_dialog, open_url, \ choose_files, ResizableDialog, NONE, open_local_file, \ - info_dialog + info_dialog, gprefs from calibre.gui2.widgets import PythonHighlighter from calibre.ptempfile import PersistentTemporaryFile from calibre.utils.icu import sort_key from calibre.utils.opml import OPML -from calibre.utils.config import JSONConfig class CustomRecipeModel(QAbstractListModel): @@ -356,7 +355,6 @@ class %(classname)s(%(base_class)s): self.clear() def opml_import(self): - opml_files = choose_files(self, 'OPML chooser dialog', _('Select OPML file'), filters=[(_('OPML'), ['opml'])] ) @@ -398,7 +396,6 @@ class %(classname)s(%(base_class)s): self.clear() # reset the question_dialog - gprefs = JSONConfig('gui') auto_skip = gprefs.get('questions_to_auto_skip', []) if skip_dialog_name in auto_skip: auto_skip.remove(skip_dialog_name)