From ab15a9c3f8e3718192026ad543968892d589a97e Mon Sep 17 00:00:00 2001 From: John Schember Date: Sun, 14 Aug 2011 19:35:07 -0400 Subject: [PATCH] Fix bug #826038: Scene break character pattern not saved. --- src/calibre/gui2/convert/heuristics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/convert/heuristics.py b/src/calibre/gui2/convert/heuristics.py index 5e7e4aa506..67774bb2b3 100644 --- a/src/calibre/gui2/convert/heuristics.py +++ b/src/calibre/gui2/convert/heuristics.py @@ -72,10 +72,11 @@ class HeuristicsWidget(Widget, Ui_Form): return True def load_histories(self): + val = unicode(self.opt_replace_scene_breaks.currentText()) + self.opt_replace_scene_breaks.clear() self.opt_replace_scene_breaks.lineEdit().setText('') - val = unicode(self.opt_replace_scene_breaks.currentText()) rssb_hist = gprefs.get('replace_scene_breaks_history', self.rssb_defaults) if val in rssb_hist: del rssb_hist[rssb_hist.index(val)]