Commit 54c363b7 authored by David Jarvie's avatar David Jarvie
Browse files

Fix build warning

parent 6036aaa4
......@@ -2577,7 +2577,7 @@ bool KAlarmApp::waitUntilPopulated(ResourceId id, int timeout)
if (id < 0)
connect(Resources::instance(), &Resources::resourcesPopulated, loop, &QEventLoop::quit);
else
connect(Resources::instance(), &Resources::resourcePopulated, [loop, &id](Resource& r) {
connect(Resources::instance(), &Resources::resourcePopulated, [&loop, &id](Resource& r) {
if (r.id() == id) loop->quit(); });
if (timeout > 0)
QTimer::singleShot(timeout * 1000, loop, &QEventLoop::quit);
......
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