From fb4cd4375c0a547129b454c376a32d752bc70422 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Mon, 6 Dec 2021 18:54:46 -0600 Subject: Remove dependency on Core5Compat --- src/downloadmanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/downloadmanager.cpp') diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 73e6abde..10ebe3e7 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -37,7 +37,6 @@ along with Mod Organizer. If not, see . #include #include -#include #include #include #include @@ -1684,9 +1683,10 @@ void DownloadManager::nxmFilesAvailable(QString, int, QVariant userData, QVarian // this may muck up the file name comparison QString alternativeLocalName = info->m_FileName; - QRegExp expression("^\\d_(.*)$"); - if (expression.indexIn(alternativeLocalName) == 0) { - alternativeLocalName = expression.cap(1); + QRegularExpression expression("^\\d_(.*)$"); + auto match = expression.match(alternativeLocalName); + if (match.hasMatch()) { + alternativeLocalName = match.captured(1); } bool found = false; -- cgit v1.3.1