From 8f36b431e773f8ccfb92f704b72745e162eb9502 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 8 Apr 2022 11:32:21 +0300 Subject: [PATCH] Add Q_ASSERT in OutputDeviceV2Interface::setCurrentMode() CCBUG: 452318 --- src/wayland/outputdevice_v2_interface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/outputdevice_v2_interface.cpp b/src/wayland/outputdevice_v2_interface.cpp index 5f3a5d460b..d5c08afa25 100644 --- a/src/wayland/outputdevice_v2_interface.cpp +++ b/src/wayland/outputdevice_v2_interface.cpp @@ -168,6 +168,7 @@ int OutputDeviceV2Interface::refreshRate() const void OutputDeviceV2Interface::setCurrentMode(OutputDeviceModeV2Interface *mode) { + Q_ASSERT(d->modes.contains(mode)); if (mode == d->currentMode) { return; }