Fix an error thrown when selecting a line using the same id as our previous selection while the previous selection linked to another id
Fix exception thrown when enabling the setting to generate comments (after it was disabled) while there are no items in the listview.
Add missing quotes to the INSERT INTO areatrigger_scripts line when generating SQL for areatriggers
Generate comments specifically for the selected source_type if no comment could be generated for whatever reason