Only switch focus between editor and viewer when viewer is visible (#1950)
This commit is contained in:
@@ -1023,9 +1023,10 @@ class GuiMain(QMainWindow):
|
|||||||
self.projView.setTreeFocus()
|
self.projView.setTreeFocus()
|
||||||
elif paneNo == nwFocus.DOCUMENT:
|
elif paneNo == nwFocus.DOCUMENT:
|
||||||
self._changeView(nwView.EDITOR)
|
self._changeView(nwView.EDITOR)
|
||||||
if self.docEditor.anyFocus():
|
hasViewer = self.splitView.isVisible()
|
||||||
|
if hasViewer and self.docEditor.anyFocus():
|
||||||
self.docViewer.setFocus()
|
self.docViewer.setFocus()
|
||||||
elif self.docViewer.anyFocus():
|
elif hasViewer and self.docViewer.anyFocus():
|
||||||
self.docEditor.setFocus()
|
self.docEditor.setFocus()
|
||||||
else:
|
else:
|
||||||
self.docEditor.setFocus()
|
self.docEditor.setFocus()
|
||||||
|
|||||||
Reference in New Issue
Block a user