Fix extra spacing between rows in word list of spell check dialog

This commit is contained in:
Kovid Goyal 2014-04-18 21:03:10 +05:30
parent 7281b0a316
commit 11814e2518

View File

@ -994,6 +994,9 @@ class SpellCheck(Dialog):
self.highlight_row(0)
self.update_summary()
self.initialize_user_dictionaries()
if self.words_model.rowCount() > 0:
self.words_view.resizeRowToContents(0)
self.words_view.verticalHeader().setDefaultSectionSize(self.words_view.rowHeight(0))
def update_summary(self):
self.summary.setText(_('Misspelled words: {0} Total words: {1}').format(*self.words_model.counts))