Bugfix in unsaved changes window when closing.

Saving via the "Unsaved changes, are you sure you want to close?" window
did save, but not actually close the program afterwards. Fixed.
Display a warning icon when tags in entry broken.

That is, when < count doesn't match > count.
Merge remote-tracking branch 'origin/master' into auto-format