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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user