mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Apply correct tab order to Category options dialog
Also pre-select (sub)category name for editing when dialog is opened for creating new (sub)category. PR #18270. Closes #18265.
This commit is contained in:
committed by
GitHub
parent
3f39bd9f35
commit
ebad387c1a
@@ -133,6 +133,9 @@ QString TorrentCategoryDialog::categoryName() const
|
||||
void TorrentCategoryDialog::setCategoryName(const QString &categoryName)
|
||||
{
|
||||
m_ui->textCategoryName->setText(categoryName);
|
||||
|
||||
const int subcategoryNameStart = categoryName.lastIndexOf(u"/") + 1;
|
||||
m_ui->textCategoryName->setSelection(subcategoryNameStart, (categoryName.size() - subcategoryNameStart));
|
||||
}
|
||||
|
||||
BitTorrent::CategoryOptions TorrentCategoryDialog::categoryOptions() const
|
||||
|
||||
Reference in New Issue
Block a user