Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a4332eba authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't assert when a transaction is deleted too early

parent d2738d31
......@@ -37,7 +37,9 @@ Transaction::Transaction(QObject *parent, AbstractResource *resource,
Transaction::~Transaction()
{
Q_ASSERT(!TransactionModel::global()->contains(this));
if(status()<DoneStatus || TransactionModel::global()->contains(this)) {
qWarning() << "destroying Transaction before it's over" << this;
}
}
AbstractResource *Transaction::resource() const
......
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