Commit 6422cb49 authored by David Faure's avatar David Faure
Browse files

Fix QObject::connect warning in itemretrievertest

connection is nullptr in that test
parent 52a55252
......@@ -48,10 +48,12 @@ ItemRetriever::ItemRetriever(Connection *connection)
, mRecursive(false)
, mCanceled(false)
{
connect(mConnection, &Connection::disconnected,
this, [this]() {
mCanceled = true;
});
if (mConnection) {
connect(mConnection, &Connection::disconnected,
this, [this]() {
mCanceled = true;
});
}
}
Connection *ItemRetriever::connection() const
......
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