From b564245480f8d59f797e24b79359a6a97d4d967c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 9 Jan 2015 13:47:30 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/editor/snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/snippets.py b/src/calibre/gui2/tweak_book/editor/snippets.py index 6d35c034ef..bde4b5bea8 100644 --- a/src/calibre/gui2/tweak_book/editor/snippets.py +++ b/src/calibre/gui2/tweak_book/editor/snippets.py @@ -490,7 +490,7 @@ class EditSnippet(QWidget): i = self.types.item(i) ftype = i.data(Qt.UserRole) i.setCheckState(Qt.Checked if ftype in ftypes else Qt.Unchecked) - if self.creating_snippet: + if self.creating_snippet and not ftypes: self.types.item(0).setCheckState(Qt.Checked) (self.name if self.creating_snippet else self.template).setFocus(Qt.OtherFocusReason)