diff --git a/gpt4all-chat/download.cpp b/gpt4all-chat/download.cpp index d3c309d9..0f5085fe 100644 --- a/gpt4all-chat/download.cpp +++ b/gpt4all-chat/download.cpp @@ -109,9 +109,7 @@ void Download::downloadModel(const QString &modelFile) = QString("ERROR: Could not open temp file: %1 %2").arg(tempFile->fileName()).arg(modelFile); qWarning() << error; clearRetry(modelFile); - QVector> data; - data.append(qMakePair(ModelList::DownloadErrorRole, error)); - ModelList::globalInstance()->updateDataByFilename(modelFile, data); + ModelList::globalInstance()->updateDataByFilename(modelFile, {{ ModelList::DownloadErrorRole, error }}); return; } tempFile->flush();