Fix tests and minor issues

This commit is contained in:
Veronica Berglyd Olsen
2022-11-22 13:05:05 +01:00
parent 3a77228aaa
commit 4fa6329eb6
3 changed files with 9 additions and 5 deletions
+3 -4
View File
@@ -103,10 +103,7 @@ class NovelSelector(QComboBox):
if includeAll:
self.insertSeparator(self.count())
if prefix:
self.addItem(prefix.format(self.tr("All Novel Folders")), "")
else:
self.addItem(icon, self.tr("All Novel Folders"), "")
self.addItem(icon, self.tr("All Novel Folders"), "")
self.setHandle(handle)
self.setEnabled(self.count() > 1)
@@ -120,6 +117,8 @@ class NovelSelector(QComboBox):
@pyqtSlot(int)
def _indexChanged(self, index):
"""Re-emit the change of selected novel signal, unless blocked.
"""
if not self._blockSignal:
self.novelSelectionChanged.emit(self.currentData())
return