Maybe you could rely on the fact that the modal formCari dialog was shown when the user double clicked on some certain item. So as long as the dialog is blocking the users input, the same item remains active in the table view.

So maybe you could just connect to the clicked() signal and act in the view according to the current index.