Bugfix: edit button in within modify layer dialog

Bug introduced when I started using the multiple selection: it worked fine
when double-clicking, but the edit button was still expecting the single
selection modus

Reported by Jan Garrevoet