Browse Source

Optimize the preview of huge torrents. Fixes issue #288.

adaptive-webui-19844
sledgehammer999 12 years ago
parent
commit
b6cedbe4af
  1. 3
      src/previewselect.cpp

3
src/previewselect.cpp

@ -99,9 +99,10 @@ void PreviewSelect::on_previewButton_clicked() {
// Flush data // Flush data
h.flush_cache(); h.flush_cache();
QStringList absolute_paths(h.absolute_files_path());
QString path; QString path;
foreach (index, selectedIndexes) { foreach (index, selectedIndexes) {
path = h.absolute_files_path().at(indexes.at(index.row())); path = absolute_paths.at(indexes.at(index.row()));
// File // File
if (QFile::exists(path)) { if (QFile::exists(path)) {
emit readyToPreviewFile(path); emit readyToPreviewFile(path);

Loading…
Cancel
Save