Code clean up

This commit is contained in:
Christophe Dumez 2010-12-30 19:38:53 +00:00
commit 64f4775a81
10 changed files with 19 additions and 26 deletions

View file

@ -109,7 +109,7 @@ QList<QVariantMap> EventManager::getPropFilesInfo(QString hash) const {
for(fi=t.begin_files(); fi != t.end_files(); fi++) {
QVariantMap file;
QString path = h.filepath(*fi);
QString name = path.split('/').last();
QString name = misc::fileName(path);
file["name"] = name;
file["size"] = misc::friendlyUnit((double)fi->size);
if(fi->size > 0)