Documents load in a new window rather than the same window after a failed document load
Submitted by aakash
Link to original bug (#702836)
Description
Steps to reproduce:
-
Try to open an unsupported file in Evince. --> Evince window will open up, showing the alert that the document could not be loaded
-
Now, in the window, go to the menu and try to open a supported document --> The selected document opens in a new window.
I think this behaviour is a bit unexpected and that the document should have opened up in the previous window itself.
I think it's happening because the uri property of EvApplication is not being unset when a document fails to load. So, when opening another document, the daemon thinks that the previous instance already has a document open, and so it creates another instance for the document to open in.