From 8488759718bf806dc88015bc25e18a76a5dfab84 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 30 Jan 2023 11:12:37 +0100 Subject: [PATCH] fix crash when importing opml --- .../services/standard/standardfeedsimportexportmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librssguard/services/standard/standardfeedsimportexportmodel.cpp b/src/librssguard/services/standard/standardfeedsimportexportmodel.cpp index 5d9a9232d..e6050ba83 100644 --- a/src/librssguard/services/standard/standardfeedsimportexportmodel.cpp +++ b/src/librssguard/services/standard/standardfeedsimportexportmodel.cpp @@ -47,6 +47,7 @@ FeedsImportExportModel::~FeedsImportExportModel() { if (m_watcherLookup.isRunning()) { m_watcherLookup.cancel(); m_watcherLookup.waitForFinished(); + qApp->processEvents(); } if (sourceModel() != nullptr && sourceModel()->rootItem() != nullptr && m_mode == Mode::Import) { @@ -373,6 +374,7 @@ void FeedsImportExportModel::importAsOPML20(const QByteArray& data, if (!fetch_metadata_online) { m_watcherLookup.waitForFinished(); + qApp->processEvents(); } } @@ -437,6 +439,7 @@ void FeedsImportExportModel::importAsTxtURLPerLine(const QByteArray& data, if (!fetch_metadata_online) { m_watcherLookup.waitForFinished(); + qApp->processEvents(); } }