Drop support for libtorrent v0.14.x

This commit is contained in:
Christophe Dumez 2012-02-18 16:44:20 +02:00
parent 0c9dbc15f9
commit a53a70742d
20 changed files with 35 additions and 260 deletions

View file

@ -96,10 +96,9 @@ void PreviewSelect::on_previewButton_clicked(){
QModelIndex index;
QModelIndexList selectedIndexes = previewList->selectionModel()->selectedRows(NAME);
if(selectedIndexes.size() == 0) return;
#if LIBTORRENT_VERSION_MINOR > 14
// Flush data
h.flush_cache();
#endif
QString path;
foreach(index, selectedIndexes){
path = h.absolute_files_path().at(indexes.at(index.row()));