Commit 6ecb8329 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

kcm: fix choosing the refresh rate

It always chose the last one, and not the highest one

(cherry picked from commit 5e1be88d)
parent 584ed8a0
Pipeline #172457 passed with stage
in 1 minute and 58 seconds
......@@ -394,6 +394,7 @@ bool OutputModel::setResolution(int outputIndex, int resIndex)
auto it = modes.begin();
while (it != modes.end()) {
if ((*it)->size() == size && (*it)->refreshRate() > bestRefreshRate) {
bestRefreshRate = (*it)->refreshRate();
modeIt = it;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment