Fix a UI bug in qtAssociationWidget when an attribute is unique

This regression was intruduced when a major renaming of model Cursor to EntityRef, which made the UI allow same entities to associate with multiple attributes, even they are defined as Unique. This commit fixes the bug.
Status Job ID Name Coverage
passed kwrobot-branch-check