mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Optimize the preview of huge torrents. Fixes issue #288.
This commit is contained in:
parent
c8753c96db
commit
b6cedbe4af
@ -99,9 +99,10 @@ void PreviewSelect::on_previewButton_clicked() {
|
||||
// Flush data
|
||||
h.flush_cache();
|
||||
|
||||
QStringList absolute_paths(h.absolute_files_path());
|
||||
QString path;
|
||||
foreach (index, selectedIndexes) {
|
||||
path = h.absolute_files_path().at(indexes.at(index.row()));
|
||||
path = absolute_paths.at(indexes.at(index.row()));
|
||||
// File
|
||||
if (QFile::exists(path)) {
|
||||
emit readyToPreviewFile(path);
|
||||
|
Loading…
Reference in New Issue
Block a user