Browse Source

Partial revert of e7c27c9b8b. Single file preview works again.

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

3
src/previewselect.cpp

@ -75,6 +75,9 @@ PreviewSelect::PreviewSelect(QWidget* parent, QTorrentHandle h): QDialog(parent) @@ -75,6 +75,9 @@ PreviewSelect::PreviewSelect(QWidget* parent, QTorrentHandle h): QDialog(parent)
}
}
previewList->selectionModel()->select(previewListModel->index(0, NAME), QItemSelectionModel::Select);
previewList->selectionModel()->select(previewListModel->index(0, SIZE), QItemSelectionModel::Select);
previewList->selectionModel()->select(previewListModel->index(0, PROGRESS), QItemSelectionModel::Select);
if (!previewListModel->rowCount()) {
QMessageBox::critical(0, tr("Preview impossible"), tr("Sorry, we can't preview this file"));
close();

Loading…
Cancel
Save