Add Q_ASSERT in OutputDeviceV2Interface::setCurrentMode()

CCBUG: 452318
This commit is contained in:
Vlad Zahorodnii 2022-04-08 11:32:21 +03:00
parent c05e2fea45
commit 8f36b431e7

View file

@ -168,6 +168,7 @@ int OutputDeviceV2Interface::refreshRate() const
void OutputDeviceV2Interface::setCurrentMode(OutputDeviceModeV2Interface *mode)
{
Q_ASSERT(d->modes.contains(mode));
if (mode == d->currentMode) {
return;
}