diff --git a/src/accountstatusmodel.cpp b/src/accountstatusmodel.cpp index 2f71f0c78867d192ff520380a08154d744046a9f..db91f0c4feae9218b13d8976d7f9a18f5b8e8e16 100644 --- a/src/accountstatusmodel.cpp +++ b/src/accountstatusmodel.cpp @@ -430,7 +430,7 @@ void AccountStatusModel::addSipRegistrationEvent(const QString& fallbackMessage, void AccountStatusModel::addTransportEvent(const QString& fallbackMessage, int errorCode) { - if (errorCode != d_ptr->m_pAccount->lastTransportErrorCode()) { + if (!d_ptr->m_lRows.size() || errorCode != d_ptr->m_pAccount->lastTransportErrorCode()) { beginInsertRows(QModelIndex(), d_ptr->m_lRows.size(), d_ptr->m_lRows.size()); d_ptr->m_lRows << new AccountStatusRow(fallbackMessage, errorCode, Type::TRANSPORT); endInsertRows();