Replaces a qFatal with qWarning to skip a bug, which i couldn't find yet...

This commit is contained in:
mfreiholz 2016-03-03 13:44:14 +01:00
parent a47073cdf8
commit c5e39068b2

View File

@ -364,7 +364,7 @@ QByteArray ContainerWidget::saveState() const
out << 1; out << 1;
QLayoutItem* li = _mainLayout->itemAt(0); QLayoutItem* li = _mainLayout->itemAt(0);
if (!li->widget()) if (!li->widget())
qWarning() << "Not a widget in _mainLayout, this shouldn't happen."; qFatal("Not a widget in _mainLayout, this shouldn't happen.");
else else
saveSectionWidgets(out, li->widget()); saveSectionWidgets(out, li->widget());
@ -480,7 +480,10 @@ bool ContainerWidget::restoreState(const QByteArray& data)
InternalContentData data; InternalContentData data;
if (!takeContent(sc, 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; SectionWidget* sw = NULL;
if (sections.size() <= 0) if (sections.size() <= 0)