mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Merge javascript changes from stable branch
This commit is contained in:
parent
61246f81c7
commit
4386b6c2c4
5 changed files with 147 additions and 134 deletions
|
@ -105,7 +105,7 @@ QList<QVariantMap> EventManager::getPropFilesInfo(QString hash) const {
|
|||
int i=0;
|
||||
for(fi=t.begin_files(); fi != t.end_files(); fi++) {
|
||||
QVariantMap file;
|
||||
QString path = QDir::cleanPath(misc::toQString(fi->path.string()));
|
||||
QString path = QDir::cleanPath(misc::toQStringU(fi->path.string()));
|
||||
QString name = path.split('/').last();
|
||||
file["name"] = name;
|
||||
file["size"] = misc::friendlyUnit((double)fi->size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue