diff options
-rw-r--r-- | examples/carddavresource/tests/carddavtest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/carddavresource/tests/carddavtest.cpp b/examples/carddavresource/tests/carddavtest.cpp index 4fb6bad..6e7cf01 100644 --- a/examples/carddavresource/tests/carddavtest.cpp +++ b/examples/carddavresource/tests/carddavtest.cpp | |||
@@ -48,8 +48,8 @@ class CardDavTest : public QObject | |||
48 | job->exec(); | 48 | job->exec(); |
49 | 49 | ||
50 | const auto collectionUrl = [&] { | 50 | const auto collectionUrl = [&] { |
51 | for(const auto collection : job->collections()) { | 51 | if (!job->collections().isEmpty()) { |
52 | return collection.url().url(); | 52 | return job->collections().first().url().url(); |
53 | } | 53 | } |
54 | return QUrl{}; | 54 | return QUrl{}; |
55 | }(); | 55 | }(); |