Skip to content

Commit 1d3f3a6

Browse files
authored
modellist: fix missing fname in modelsJsonCacheFile() (#3072)
Signed-off-by: Jared Van Bortel <[email protected]>
1 parent 7dbb3d2 commit 1d3f3a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpt4all-chat/src/modellist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ static std::optional<QFile> modelsJsonCacheFile()
13471347
if (auto path = QStandardPaths::locate(loc, modelsJsonFname); !path.isEmpty())
13481348
return std::make_optional<QFile>(path);
13491349
if (auto path = QStandardPaths::writableLocation(loc); !path.isEmpty())
1350-
return std::make_optional<QFile>(path);
1350+
return std::make_optional<QFile>(u"%1/%2"_s.arg(path, modelsJsonFname));
13511351
return std::nullopt;
13521352
}
13531353

0 commit comments

Comments
 (0)