From 06e96916edeed125e6624d6bbd2671c6b4b9e4ab Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Mon, 16 Feb 2026 18:50:44 +0100 Subject: [PATCH] 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. --- libs/BeetRoundCore/genericcore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/BeetRoundCore/genericcore.cpp b/libs/BeetRoundCore/genericcore.cpp index d4ba3d6..015705a 100644 --- a/libs/BeetRoundCore/genericcore.cpp +++ b/libs/BeetRoundCore/genericcore.cpp @@ -161,10 +161,10 @@ void GenericCore::onBiddingsChanged(int round, QList biddings) { } void GenericCore::setupModels() { - m_mainModel = make_shared(m_modelUndoStack, this); + m_mainModel = make_shared(m_modelUndoStack); m_sortFilterModel = make_shared(m_mainModel); - m_modelSummary = make_shared(m_mainModel, this); + m_modelSummary = make_shared(m_mainModel); /// QAbstractItemModelTester #ifdef QT_DEBUG