mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-24 23:31:32 +08:00
Replaces a qFatal with qWarning to skip a bug, which i couldn't find yet...
This commit is contained in:
parent
a47073cdf8
commit
c5e39068b2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user