Commit 644bc8c5 authored by Frederik Gladhorn's avatar Frederik Gladhorn
Browse files

Fix Don't call QList::operator[]() on temporary

Fix clazy warning. at() is the right choice here in any case.
parent c969d711
......@@ -189,7 +189,7 @@ void Widget::setConfig(const KScreen::ConfigPtr &config)
mScreen->setActiveOutput(qmlOutput);
} else {
if (!mScreen->outputs().isEmpty()) {
mScreen->setActiveOutput(mScreen->outputs()[0]);
mScreen->setActiveOutput(mScreen->outputs().at(0));
}
}
......
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