mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Use libtorrent version.hpp instead of our own DEFINE
This commit is contained in:
parent
2e0c8f848f
commit
5f23cbc470
17 changed files with 79 additions and 62 deletions
|
@ -36,6 +36,7 @@
|
|||
#include <QHeaderView>
|
||||
#include <QMessageBox>
|
||||
#include <QFile>
|
||||
#include <libtorrent/version.hpp>
|
||||
#include <libtorrent/session.hpp>
|
||||
#include "ui_preview.h"
|
||||
#include "previewlistdelegate.h"
|
||||
|
@ -65,7 +66,7 @@ protected slots:
|
|||
QModelIndex index;
|
||||
QModelIndexList selectedIndexes = previewList->selectionModel()->selectedRows(NAME);
|
||||
if(selectedIndexes.size() == 0) return;
|
||||
#ifdef LIBTORRENT_0_15
|
||||
#if LIBTORRENT_VERSION_MINOR > 14
|
||||
// Flush data
|
||||
h.flush_cache();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue