Use better assert

This commit is contained in:
Sergio Martins
2019-07-05 11:05:37 +01:00
parent 317cb1b472
commit e9128da69f

View File

@@ -352,7 +352,8 @@ void AnchorGroup::removeItem(Item *item)
void AnchorGroup::turnIntoPlaceholder()
{
qCDebug(placeholder) << Q_FUNC_INFO;
Q_ASSERT(!anchorFollowing());
Q_ASSERT(!isSquashed());
if (left->shouldFollow() && right->folowee() != left) {
// Make use of the extra space, so it's fair. When a dock widget in the middle is closed, both left/right widgets can use the space.
if (!right->isStatic())