Only show quit confirmation if project is unsaved

Closes #176.