do not execute selection if in readOnly mode. Closes #626.
Merge branch 'bugfix-issue-626' into develop