mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Focus on Download button if torrent link retrieved from the clipboard
PR #20716. Closes #20682.
This commit is contained in:
committed by
GitHub
parent
94d98e78db
commit
bb0fcc5841
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user