Commit 0492ddd7 authored by David Faure's avatar David Faure
Browse files

Fix another null-sender warning in itemretrievertest

parent 9982a897
......@@ -343,8 +343,11 @@ bool ItemRetriever::exec()
}
}
}, Qt::UniqueConnection);
connect(mConnection, &Connection::connectionClosing,
&eventLoop, [&eventLoop]() { eventLoop.exit(1); });
if (mConnection) {
connect(mConnection, &Connection::connectionClosing,
&eventLoop, [&eventLoop]() { eventLoop.exit(1); });
}
auto it = requests.begin();
while (it != requests.end()) {
......
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