fixed bug-#4281 Grid edit enum field, dialog disappears when trying to select value

I had to fix this on master because QA_4_1 branch was old 

Signed-off-by: Viduranga Wijesooriya <vpowerrc@gmail.com>