Fixed a crash bug when the application is quit. Because of intertwining shared pointer and the Qt ownership of child objects the model and the model summary were tried to be destroyed two times.

This commit is contained in:
2026-02-16 18:50:44 +01:00
parent 1e64dda701
commit 06e96916ed

View File

@ -161,10 +161,10 @@ void GenericCore::onBiddingsChanged(int round, QList<bidding> biddings) {
}
void GenericCore::setupModels() {
m_mainModel = make_shared<TableModel>(m_modelUndoStack, this);
m_mainModel = make_shared<TableModel>(m_modelUndoStack);
m_sortFilterModel = make_shared<GeneralSortFilterModel>(m_mainModel);
m_modelSummary = make_shared<ModelSummary>(m_mainModel, this);
m_modelSummary = make_shared<ModelSummary>(m_mainModel);
/// QAbstractItemModelTester
#ifdef QT_DEBUG