'Build an index of the selected titles'

def _ok_clicked(self):

    if len(self.books_table.selectedItems()):
        self.accept()
    else:
        msg = u'You    must    make    a    selection!'
        showErrorDlg(msg, self)
