Fix for the title bar not showing up saved/notsaved etc. also not making...

... it so you save correctly. Not sure how I didn't notice this before.