ide; fixed closing current project before even showing new project dialo...

...g.