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

fix: catch exception on invalid account creation

Change-Id: Iafffd0d256e261f80252a14732afee8c3508f28c
parent 6815714a
No related branches found
No related tags found
No related merge requests found
......@@ -1232,6 +1232,8 @@ CallWidget::updateConversationForNewContact(const std::string& convUid)
void
CallWidget::updateSmartList()
{
try {
if (!ui->smartList->model()) {
smartListModel_.reset(new SmartListModel(LRCInstance::getCurrAccId(), this));
ui->smartList->setModel(smartListModel_.get());
......@@ -1246,6 +1248,10 @@ CallWidget::updateSmartList()
SIGNAL(selectionChanged(QItemSelection, QItemSelection)),
this,
SLOT(smartListSelectionChanged(QItemSelection, QItemSelection)));
} catch (...) {
qWarning() << "No account selected!";
return;
}
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment