replace unecessary NULL-checks
improve readability
make gp editor use default number of laps
Merge pull request #1463 from konstin/gp_editor_laps

small improvements to the gp editor