mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-16 05:01:37 +03:00
Optimize the preview of huge torrents. Fixes issue #288.
This commit is contained in:
parent
c8753c96db
commit
b6cedbe4af
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue