diff --git a/src/librssguard/services/standard/standardfeedsimportexportmodel.cpp b/src/librssguard/services/standard/standardfeedsimportexportmodel.cpp index 6e2fa73e5..ca0b682e2 100644 --- a/src/librssguard/services/standard/standardfeedsimportexportmodel.cpp +++ b/src/librssguard/services/standard/standardfeedsimportexportmodel.cpp @@ -363,9 +363,11 @@ void FeedsImportExportModel::importAsOPML20(const QByteArray& data, m_lookup.clear(); m_lookup.append(lookup); - QFuture fut = QtConcurrent::mapped(m_lookup, [=](const FeedLookup& lookup) -> bool { + std::function func = [=](const FeedLookup& lookup) -> bool { return produceFeed(lookup); - }); + }; + + QFuture fut = QtConcurrent::mapped(m_lookup, func); m_watcherLookup.setFuture(fut); @@ -430,9 +432,11 @@ void FeedsImportExportModel::importAsTxtURLPerLine(const QByteArray& data, m_lookup.clear(); m_lookup.append(lookup); - QFuture fut = QtConcurrent::mapped(m_lookup, [=](const FeedLookup& lookup) -> bool { + std::function func = [=](const FeedLookup& lookup) -> bool { return produceFeed(lookup); - }); + }; + + QFuture fut = QtConcurrent::mapped(m_lookup, func); m_watcherLookup.setFuture(fut);