Commit eaa58ae3 authored by Martin Straka's avatar Martin Straka

Fixed logDevice crash during application exit

parent a63fc1b2
......@@ -61,6 +61,11 @@ bool Accounts::boxEffectiveOVM(const QString &userName)
void Accounts::updateAccountCounters(const QVariant &acntModelVariant)
{
if (Q_UNLIKELY(GlobInstcs::logPtr == Q_NULLPTR)) {
Q_ASSERT(0);
return;
}
debugFuncCall();
AccountListModel *accountModel =
......@@ -77,15 +82,16 @@ void Accounts::updateAccountCounters(const QVariant &acntModelVariant)
void Accounts::updateNewMessageCounter(const QVariant &acntModelVariant,
const QString &userName)
{
debugFuncCall();
if (Q_UNLIKELY((GlobInstcs::setPtr == Q_NULLPTR) ||
(GlobInstcs::logPtr == Q_NULLPTR) ||
(GlobInstcs::messageDbsPtr == Q_NULLPTR) ||
(GlobInstcs::acntMapPtr == Q_NULLPTR))) {
Q_ASSERT(0);
return;
}
debugFuncCall();
AccountListModel *accountModel =
AccountListModel::fromVariant(acntModelVariant);
if (accountModel == Q_NULLPTR) {
......
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