Don't warn when restoring and there's no last pos info
We now restore floating windows to their previous position too when toggling float. If there's no last info it's fine
This commit is contained in:
@@ -600,10 +600,8 @@ void DockWidgetBase::Private::close()
|
||||
|
||||
void DockWidgetBase::Private::restoreToPreviousPosition()
|
||||
{
|
||||
if (!m_lastPositions.isValid()) {
|
||||
qWarning() << Q_FUNC_INFO << "Only restoring to MainWindow supported for now";
|
||||
if (!m_lastPositions.isValid())
|
||||
return;
|
||||
}
|
||||
|
||||
Layouting::Item *item = m_lastPositions.lastItem();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user