Hides popup box if no changes have been made

Adds functionality so that the program will only ask to quit if changes
have been made.

Author: Shockolate Quan1992