summaryrefslogtreecommitdiffstats
path: root/shemovcleaner.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-08-20 08:31:29 +0200
committerArno <arno@disconnect.de>2016-08-20 08:31:29 +0200
commitd47427a2d51fcc7f8e1f8926a706e04ff01603ed (patch)
tree22002ee669fbce025aad1782f75733843e3581be /shemovcleaner.cpp
parent8ab990b7c6fb5348b09f451878a80e2c70695876 (diff)
downloadShemovCleaner-d47427a2d51fcc7f8e1f8926a706e04ff01603ed.tar.gz
ShemovCleaner-d47427a2d51fcc7f8e1f8926a706e04ff01603ed.tar.bz2
ShemovCleaner-d47427a2d51fcc7f8e1f8926a706e04ff01603ed.zip
Present torrent files as a tree
A torrent info dictionary has two modes: single and multi files. When in multi-mode, the name-entry is the directory containing the files. Represent it as a tree. During testing I discovered a fatal bug in the torrent parser: If we encounter an invalid string, we have to move mPos forward, else we will loop indefinitely until we're OOM. I also added some icons for folders, files and trackers.
Diffstat (limited to 'shemovcleaner.cpp')
-rw-r--r--shemovcleaner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shemovcleaner.cpp b/shemovcleaner.cpp
index beb5baf..c50e598 100644
--- a/shemovcleaner.cpp
+++ b/shemovcleaner.cpp
@@ -205,7 +205,7 @@ void ShemovCleaner::torrentInfo(){
QList<QVariant> tData = p.parse();
tData.removeAll(QVariant());
tData.removeAll(0);
- mTorrentDisplay->setData(tData);
+ mTorrentDisplay->setData(tData, sel.first().data().toString());
mTorrentDisplay->show();
return;
}