Commit 7cbccda5 authored by Frederik Gladhorn's avatar Frederik Gladhorn
Browse files

Make sure for loop does not detach

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D14350
parent 10625146
......@@ -367,7 +367,8 @@ QDebug operator<<(QDebug dbg, const KScreen::ConfigPtr &config)
{
if (config) {
dbg << "KScreen::Config(";
for (const auto output : config->outputs()) {
const auto outputs = config->outputs();
for (const auto &output : outputs) {
if (output->isConnected()) {
dbg << endl << output;
}
......
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