|
|
@ -249,7 +249,11 @@ AddNewTorrentDialog::AddNewTorrentDialog(const BitTorrent::AddTorrentParams &inP |
|
|
|
connect(editHotkey, &QShortcut::activated, this, &AddNewTorrentDialog::renameSelectedFile); |
|
|
|
connect(editHotkey, &QShortcut::activated, this, &AddNewTorrentDialog::renameSelectedFile); |
|
|
|
connect(m_ui->contentTreeView, &QAbstractItemView::doubleClicked, this, &AddNewTorrentDialog::renameSelectedFile); |
|
|
|
connect(m_ui->contentTreeView, &QAbstractItemView::doubleClicked, this, &AddNewTorrentDialog::renameSelectedFile); |
|
|
|
|
|
|
|
|
|
|
|
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setFocus(); |
|
|
|
// Default focus
|
|
|
|
|
|
|
|
if (m_ui->comboTTM->currentIndex() == 0) // 0 is Manual mode
|
|
|
|
|
|
|
|
m_ui->savePath->setFocus(); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
m_ui->categoryComboBox->setFocus(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
AddNewTorrentDialog::~AddNewTorrentDialog() |
|
|
|
AddNewTorrentDialog::~AddNewTorrentDialog() |
|
|
|