Removed obsolete editMode-check