GUI: sync the flag actions with the current message

Thanks to "serpentine" on IRC for reporting this.