Again... Fixes invisible FloatingWidget's title-widget after restoring state.

This commit is contained in:
mfreiholz 2016-03-09 08:37:20 +01:00
parent afb5abd635
commit 21f316577f

View File

@ -942,6 +942,11 @@ bool ContainerWidget::restoreFloatingWidgets(QDataStream& in, int version, QList
FloatingWidget* fw = new FloatingWidget(this, sc, data.titleWidget, data.contentWidget, this); FloatingWidget* fw = new FloatingWidget(this, sc, data.titleWidget, data.contentWidget, this);
fw->restoreGeometry(geom); fw->restoreGeometry(geom);
fw->setVisible(visible); fw->setVisible(visible);
if (visible)
{
fw->_titleWidget->setVisible(visible);
fw->_contentWidget->setVisible(visible);
}
floatings.append(fw); floatings.append(fw);
data.titleWidget->_fw = fw; // $mfreiholz: Don't look at it :-< It's more than ugly... data.titleWidget->_fw = fw; // $mfreiholz: Don't look at it :-< It's more than ugly...
} }