mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Update gpt4all-chat/download.cpp
Co-authored-by: Jared Van Bortel <jared@nomic.ai> Signed-off-by: AT <manyoso@users.noreply.github.com>
This commit is contained in:
parent
08b5dc8598
commit
8474d76fec
@ -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<QPair<int, QVariant>> data;
|
||||
data.append(qMakePair(ModelList::DownloadErrorRole, error));
|
||||
ModelList::globalInstance()->updateDataByFilename(modelFile, data);
|
||||
ModelList::globalInstance()->updateDataByFilename(modelFile, {{ ModelList::DownloadErrorRole, error }});
|
||||
return;
|
||||
}
|
||||
tempFile->flush();
|
||||
|
Loading…
Reference in New Issue
Block a user