When loading the saved state for the last used macro, it would
previously also move to the children even if the previously selected
macro folder was already reached. This would cause problems if a tree
node is a source file in one language provider but a regular directory
in another, because in that case the node can have both child nodes and
commands. This caused the macroselectordlg.py UI test to fail once the
QuickJS provider is enabled in a later patch.
Change-Id: I963cb13bd705cfc6fd2b5e7730297606dfe33d64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204108
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins