relax a warning about not finding dock widget to restore

If the user provided a factory and it returns nullptr on purpose
then don't warn, it's intentional by the user
This commit is contained in:
Sergio Martins
2021-07-06 23:12:49 +01:00
parent be8af12a90
commit 02c17e59dd
2 changed files with 2 additions and 3 deletions

View File

@@ -798,9 +798,6 @@ DockWidgetBase *DockWidgetBase::deserialize(const LayoutSaver::DockWidget::Ptr &
<< "; to" << saved->affinities;
dw->d->affinities = saved->affinities;
}
} else {
qWarning() << Q_FUNC_INFO << "Couldn't find dock widget" << saved->uniqueName;
}
return dw;