mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- flush cache before file preview (libtorrent >= 0.15 only)
This commit is contained in:
parent
abf35a31f3
commit
bd5880843f
4 changed files with 18 additions and 2 deletions
|
@ -64,6 +64,10 @@ protected slots:
|
|||
QModelIndex index;
|
||||
QModelIndexList selectedIndexes = previewList->selectionModel()->selectedRows(NAME);
|
||||
if(selectedIndexes.size() == 0) return;
|
||||
#ifdef LIBTORRENT_0_15
|
||||
// Flush data
|
||||
h.flush_cache();
|
||||
#endif
|
||||
QString path;
|
||||
foreach(index, selectedIndexes){
|
||||
path = h.files_path().at(indexes.at(index.row()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue