Incorrect active document is chosen on Layout document close
fredriks123 opened this issue · comments
When closing a document that is the single document of a floating window, the next active document is set to an unexpected one.
The logic behind closing the document checks for the index of the closing document (amongst all documents in the docking manager, not just the layout manager that the document is in) and activates the document a index - 1. This will in many cases change the selected document in the layout manager that is activated next.