From 924481b57bbdf53463dd194a9ec85eb05af00c76 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 18 Apr 2014 20:39:10 +0530 Subject: [PATCH] Fix multiple rows being selectable in the word list of the spell check dialog. Fixes #1309559 [multiple selection in edit books spell checker](https://bugs.launchpad.net/calibre/+bug/1309559) --- src/calibre/gui2/tweak_book/spell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/spell.py b/src/calibre/gui2/tweak_book/spell.py index 62fbf88be8..84ab1c3df9 100644 --- a/src/calibre/gui2/tweak_book/spell.py +++ b/src/calibre/gui2/tweak_book/spell.py @@ -751,7 +751,7 @@ class SpellCheck(Dialog): state = tprefs.get('spell-check-table-state', None) hh = self.words_view.horizontalHeader() w.setSortingEnabled(True), w.setShowGrid(False), w.setAlternatingRowColors(True) - w.setSelectionBehavior(w.SelectRows) + w.setSelectionBehavior(w.SelectRows), w.setSelectionMode(w.SingleSelection) w.verticalHeader().close() h.addWidget(w) self.words_model = m = WordsModel(self)