mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Focus on Download button if torrent link retrieved from the clipboard
PR #20716. Closes #20682.
This commit is contained in:
parent
3e0fd01604
commit
7310eec74e
1 changed files with 6 additions and 5 deletions
|
@ -90,11 +90,12 @@ DownloadFromURLDialog::DownloadFromURLDialog(QWidget *parent)
|
|||
urls << urlString;
|
||||
}
|
||||
|
||||
const QString text = urls.join(u'\n')
|
||||
+ (!urls.isEmpty() ? u"\n" : u"");
|
||||
|
||||
m_ui->textUrls->setText(text);
|
||||
m_ui->textUrls->moveCursor(QTextCursor::End);
|
||||
if (!urls.isEmpty())
|
||||
{
|
||||
m_ui->textUrls->setText(urls.join(u'\n') + u"\n");
|
||||
m_ui->textUrls->moveCursor(QTextCursor::End);
|
||||
m_ui->buttonBox->setFocus();
|
||||
}
|
||||
|
||||
if (const QSize dialogSize = m_storeDialogSize; dialogSize.isValid())
|
||||
resize(dialogSize);
|
||||
|
|
Loading…
Reference in a new issue