This commit is contained in:
Kovid Goyal 2022-07-29 23:48:54 +05:30
parent df6ddce8a2
commit 1b1715b8fe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class DBCheck(QDialog): # {{{
self.rejected = False
def start(self):
t = self.thread = Thread(target=self.vacuum, daemon=True)
t = self.thread = Thread(target=self.vacuum, daemon=True, name='VacuumDB')
t.start()
def vacuum(self):

View File

@ -312,7 +312,7 @@ class BooksModel(QAbstractTableModel): # {{{
if font_type != 'normal':
self.styled_columns[colname] = getattr(self, f'{font_type}_font')
old[colname] = font_type
self.db.new_api.set_pref('styled_columns', old)
db.set_pref('styled_columns', old)
col = self.column_map.index(colname)
for row in range(self.rowCount(QModelIndex())):
self.dataChanged.emit(self.index(row, col), self.index(row,