Don't prompt for reload from infobar when there are no unsaved changes

Also warn about losing undo history when there are no changes.
Merge pull request #350 from ntrel/reload-prompt

Don't prompt for reload from infobar when there are no unsaved changes