diff --git a/src/gui/deletionconfirmationdlg.h b/src/gui/deletionconfirmationdlg.h index 7756ad5ae..4b778d28b 100644 --- a/src/gui/deletionconfirmationdlg.h +++ b/src/gui/deletionconfirmationdlg.h @@ -32,6 +32,7 @@ #define DELETIONCONFIRMATIONDLG_H #include +#include #include "ui_confirmdeletiondlg.h" #include "preferences.h" #include "iconprovider.h" @@ -55,7 +56,7 @@ class DeletionConfirmationDlg : public QDialog, private Ui::confirmDeletionDlg { move(misc::screenCenter(this)); checkPermDelete->setChecked(Preferences::instance()->deleteTorrentFilesAsDefault()); connect(checkPermDelete, SIGNAL(clicked()), this, SLOT(updateRememberButtonState())); - buttonBox->setFocus(); + buttonBox->button(QDialogButtonBox::Cancel)->setFocus(); } bool shouldDeleteLocalFiles() const {