Fix FloatingWindow::hasSingleFrame()

Use m_dropArea->numFrames() which happens first, otherwise there
can be a moment where the frames() aren't updated yet
This commit is contained in:
Sergio Martins
2020-05-25 21:43:01 +01:00
parent cd1f52a4bb
commit ee4ad02722

View File

@@ -272,7 +272,7 @@ bool FloatingWindow::anyNonDockable() const
bool FloatingWindow::hasSingleFrame() const
{
return frames().size() == 1;
return m_dropArea->numFrames() == 1;
}
bool FloatingWindow::hasSingleDockWidget() const