Ask for saving changes before opening recent project

Fixes #1065