Commit 9c9d46b4 authored by Andreas Traczyk's avatar Andreas Traczyk

fix crash during incoming call and in settings

Change-Id: Ifad1befa716beb165deff95908899553095e0925
parent 00febbae
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment