BUG: IF condition was not allowing the correct flags to be set

By the time the IF condition was checked the selected column was 1 causing the
ItemIsEditable flag to be never set.

Change-Id: I9fe491f84924bda4e748c5b99fe1aa2ad791bf89