Merge hotfixes from 1.5.1 (#914)

* Fix bug in translation source list and restore lost translations
* Fix shift focus to novel tree on Alt+1 when visible
* Bump version and update changelog and release notes
This commit is contained in:
Veronica Berglyd Olsen
2021-10-23 16:23:01 +02:00
committed by GitHub
parent 1c45331b0a
commit 9a484193eb
10 changed files with 3255 additions and 2484 deletions
+5 -1
View File
@@ -1220,7 +1220,11 @@ class GuiMain(QMainWindow):
"""Switch focus between main GUI views.
"""
if paneNo == nwWidget.TREE:
self.treeView.setFocus()
tabIdx = self.projTabs.currentIndex()
if tabIdx == self.idxTreeView:
self.treeView.setFocus()
elif tabIdx == self.idxNovelView:
self.novelView.setFocus()
elif paneNo == nwWidget.EDITOR:
self.mainTabs.setCurrentWidget(self.splitDocs)
self.docEditor.setFocus()