How to reproduce the bug:
- Create a new file.
- Save it, but don't enter filename. Just leave dialog open.
- Open new file.
- It will open the file, but keep the previous save dialog open.
- Enter a filename and save the file. It will save the recently opened file (not the one that you wanted to save) with the name that you just set in the dialog.