Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

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));
}
}
......
Markdown is supported
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