mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
- Fixed some signals/slots (safer)
- Forgot to remove temp file when the file was downloaded from an url (rare occasions)
This commit is contained in:
parent
8c05caba3a
commit
325a588526
17 changed files with 156 additions and 155 deletions
|
@ -47,7 +47,7 @@ class previewSelect: public QDialog, private Ui::preview {
|
|||
torrent_handle h;
|
||||
|
||||
signals:
|
||||
void readyToPreviewFile(const QString&) const;
|
||||
void readyToPreviewFile(QString) const;
|
||||
|
||||
protected slots:
|
||||
void on_previewButton_clicked(){
|
||||
|
@ -126,7 +126,7 @@ class previewSelect: public QDialog, private Ui::preview {
|
|||
QMessageBox::critical(0, tr("Preview impossible"), tr("Sorry, we can't preview this file"));
|
||||
close();
|
||||
}
|
||||
connect(this, SIGNAL(readyToPreviewFile(const QString&)), parent, SLOT(previewFile(const QString&)));
|
||||
connect(this, SIGNAL(readyToPreviewFile(QString)), parent, SLOT(previewFile(QString)));
|
||||
if(previewListModel->rowCount() == 1){
|
||||
// Only one file : no choice
|
||||
on_previewButton_clicked();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue