    int index = tblMailView->currentIndex().row();
    
    if (index >= 0 && index < mailModel->getData().count()) {
        return mailModel->getData().at(index);
    }
    else {
        return NULL;
    }