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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user