mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
WebAPI: Use native separators for path autofill suggestions
PR #23439. Closes #23432.
This commit is contained in:
committed by
GitHub
parent
ee62dd3cda
commit
1be4e646e1
@@ -1230,7 +1230,7 @@ void AppController::getDirectoryContentAction()
|
||||
const QFileInfo fileInfo = it.nextFileInfo();
|
||||
QJsonObject fileObject
|
||||
{
|
||||
{KEY_FILE_METADATA_NAME, fileInfo.fileName()},
|
||||
{KEY_FILE_METADATA_NAME, Path(fileInfo.fileName()).toString()},
|
||||
{KEY_FILE_METADATA_CREATION_DATE, Utils::DateTime::toSecsSinceEpoch(fileInfo.birthTime())},
|
||||
{KEY_FILE_METADATA_LAST_ACCESS_DATE, Utils::DateTime::toSecsSinceEpoch(fileInfo.lastRead())},
|
||||
{KEY_FILE_METADATA_LAST_MODIFICATION_DATE, Utils::DateTime::toSecsSinceEpoch(fileInfo.lastModified())},
|
||||
@@ -1250,7 +1250,7 @@ void AppController::getDirectoryContentAction()
|
||||
}
|
||||
else
|
||||
{
|
||||
ret.append(it.next());
|
||||
ret.append(Path(it.next()).toString());
|
||||
}
|
||||
}
|
||||
setResult(ret);
|
||||
|
||||
Reference in New Issue
Block a user