fixed ticket #1854; correct record selection when working with multithreading in the edit view