mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 20:55:55 +01:00
...
This commit is contained in:
parent
56e69950c1
commit
1f7775dda4
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ def rowCount(self, parent=None):
|
|||
return len(self.current_voices) + 1
|
||||
|
||||
def columnCount(self, parent=None):
|
||||
return 3
|
||||
return len(self.column_headers)
|
||||
|
||||
def headerData(self, section, orientation, role=Qt.ItemDataRole.DisplayRole):
|
||||
if role == Qt.ItemDataRole.DisplayRole and orientation == Qt.Orientation.Horizontal:
|
||||
|
|
@ -163,7 +163,7 @@ def backend_settings(self):
|
|||
if om != self.system_default_output_module:
|
||||
ans['output_module'] = om
|
||||
voice = self.selected_voice
|
||||
if voice != VoicesModel.system_default_voice:
|
||||
if voice and voice != VoicesModel.system_default_voice:
|
||||
ans['voice'] = voice
|
||||
rate = self.rate
|
||||
if rate:
|
||||
|
|
|
|||
Loading…
Reference in a new issue