Browse Source

Merge pull request #11829 from thalieht/doubleclick

Allow double-click in preview dialog
adaptive-webui-19844
Vladimir Golovnev 5 years ago committed by GitHub
parent
commit
dc8f4b776c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/gui/previewselectdialog.cpp

1
src/gui/previewselectdialog.cpp

@ -61,6 +61,7 @@ PreviewSelectDialog::PreviewSelectDialog(QWidget *parent, const BitTorrent::Torr @@ -61,6 +61,7 @@ PreviewSelectDialog::PreviewSelectDialog(QWidget *parent, const BitTorrent::Torr
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Preview"));
connect(m_ui->buttonBox, &QDialogButtonBox::accepted, this, &PreviewSelectDialog::previewButtonClicked);
connect(m_ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(m_ui->previewList, &QAbstractItemView::doubleClicked, this, &PreviewSelectDialog::previewButtonClicked);
const Preferences *pref = Preferences::instance();
// Preview list

Loading…
Cancel
Save