calendarGUI: do not refresh when user cancelled deleting the events.
Change some things as suggested by cppcheck.