BUGFIX: Do not display .!qB file extensions in Web UI

This commit is contained in:
Christophe Dumez 2012-05-29 18:34:57 +03:00
commit bf685773e6
2 changed files with 5 additions and 1 deletions

View file

@ -2,6 +2,7 @@
- BUGFIX: Fix possible crash when showing torrent content (closes #1002586)
- BUGFIX: Remove 100kb limit for torrent file size in Web UI
- BUGFIX: Fix ratio limiting bug (closes #835217)
- BUGFIX: Do not display .!qB file extensions in Web UI
* Sun May 20 - Christophe Dumez <chris@qbittorrent.org> - v2.9.9
- BUGFIX: More reliable RSS feed parsing (closes #1001777)

View file

@ -109,7 +109,10 @@ QList<QVariantMap> EventManager::getPropFilesInfo(QString hash) const {
h.file_progress(fp);
for(int i=0; i<h.num_files(); ++i) {
QVariantMap file;
file["name"] = h.filename_at(i);
QString fileName = h.filename_at(i);
if (fileName.endsWith(".!qB"))
fileName.chop(4);
file["name"] = fileName;
libtorrent::size_type size = h.filesize_at(i);
file["size"] = misc::friendlyUnit((double)size);
if(size > 0)