Skip to content
Snippets Groups Projects
Commit 9c9d46b4 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

fix crash during incoming call and in settings

Change-Id: Ifad1befa716beb165deff95908899553095e0925
parent 00febbae
No related branches found
No related tags found
No related merge requests found
......@@ -485,9 +485,8 @@ CallWidget::showConversationView()
void
CallWidget::selectSmartlistItem(const std::string & convUid)
{
if (convUid.empty()) {
if (convUid.empty() || !ui->smartList->selectionModel())
return;
}
ui->smartList->selectionModel()->setCurrentIndex(QModelIndex(), QItemSelectionModel::Deselect);
auto convModel = LRCInstance::getCurrentConversationModel();
auto conversation = Utils::getConversationFromUid(convUid, *convModel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment