The file does __not__ open (because the dialog is still open). ... emphasis added
@ntrel I thought from your description without this PR the file __does__ open, behind the dialog.
Anyway, as I said this is better than having ill defined effects from Geany's non-reentrancy, its so edge case nobody else has complained AFAIK, so that if you are happy with the result then ok by me.