Add Q_ASSERT in OutputDeviceV2Interface::setCurrentMode()
CCBUG: 452318
This commit is contained in:
parent
c05e2fea45
commit
8f36b431e7
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ int OutputDeviceV2Interface::refreshRate() const
|
|||
|
||||
void OutputDeviceV2Interface::setCurrentMode(OutputDeviceModeV2Interface *mode)
|
||||
{
|
||||
Q_ASSERT(d->modes.contains(mode));
|
||||
if (mode == d->currentMode) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue