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)

This commit is contained in:
Kovid Goyal 2014-04-18 20:39:10 +05:30
parent 394b9c20d9
commit 924481b57b

View File

@ -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)