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
+12 -2
View File
@@ -2,6 +2,18 @@
<html>
<body>
<h2>Release Notes for 1.5.1</h2>
<p><i>Released on 23 October 2021</i></p>
<p>This is a bugfix release that fixes two issues. One related to the Project Details dialog
missing its translated labels for non-English languages, and a fix concerning switching focus to
the project tree when the Novel tab is visible. If the Novel tab is selected, the focus shift now
correctly gives focus to the Novel tree.</p>
<p><i>See also the <a href="https://github.com/vkbo/novelWriter/releases">Releases</a> page.</i></p>
<hr/>
<h2>Release Notes for 1.5</h2>
<p><i>Released on 19 September 2021</i></p>
@@ -74,7 +86,5 @@ files had to be shipped with novelWriter.</p>
it is available, a "User Manual (PDF)" option should be visible in the Help menu. This should give
you access to the documentation also when you don't have an active internet connection.</p>
<p><i>See also the <a href="https://github.com/vkbo/novelWriter/releases">Releases</a> page.</i></p>
</body>
</html>
+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()