From a29f2dcfaa411e3781707e3f9fd5c9ee560664ee Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 24 May 2015 15:12:07 +0800 Subject: [PATCH] Set default focus to ok button in add new torrent dlg --- src/gui/addnewtorrentdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/addnewtorrentdialog.cpp b/src/gui/addnewtorrentdialog.cpp index e480ae38b..2bd8d633b 100644 --- a/src/gui/addnewtorrentdialog.cpp +++ b/src/gui/addnewtorrentdialog.cpp @@ -87,6 +87,8 @@ AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent) editHotkey = new QShortcut(QKeySequence("F2"), ui->content_tree, 0, 0, Qt::WidgetShortcut); connect(editHotkey, SIGNAL(activated()), SLOT(renameSelectedFile())); connect(ui->content_tree, SIGNAL(doubleClicked(QModelIndex)), SLOT(renameSelectedFile())); + + ui->buttonBox->button(QDialogButtonBox::Ok)->setFocus(); } AddNewTorrentDialog::~AddNewTorrentDialog()