From c5e39068b27a00e64dc6ed78cfb5e67661d2bc7c Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Thu, 3 Mar 2016 13:44:14 +0100 Subject: [PATCH] Replaces a qFatal with qWarning to skip a bug, which i couldn't find yet... --- AdvancedDockingSystem/src/ContainerWidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AdvancedDockingSystem/src/ContainerWidget.cpp b/AdvancedDockingSystem/src/ContainerWidget.cpp index 66b5080..5eaa7db 100644 --- a/AdvancedDockingSystem/src/ContainerWidget.cpp +++ b/AdvancedDockingSystem/src/ContainerWidget.cpp @@ -364,7 +364,7 @@ QByteArray ContainerWidget::saveState() const out << 1; QLayoutItem* li = _mainLayout->itemAt(0); if (!li->widget()) - qWarning() << "Not a widget in _mainLayout, this shouldn't happen."; + qFatal("Not a widget in _mainLayout, this shouldn't happen."); else saveSectionWidgets(out, li->widget()); @@ -480,7 +480,10 @@ bool ContainerWidget::restoreState(const QByteArray& data) InternalContentData data; if (!takeContent(sc, data)) - qFatal("This should never happen!!!"); + { + qWarning("This should never happen! Looks like a bug during serialization, since the content is already being used in SWs."); + continue; + } SectionWidget* sw = NULL; if (sections.size() <= 0)