Update license to be GPLv2 or later.
Merge branch 'release_30' into release_31

Update license to be GPLv2 or later.
Fix crash when the window is closed before the settings dialog.