mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-11 09:54:58 -06:00
Add case-sensitive & case-insensitive natural sort helper function
Fix helper function not being thread-safe Use QBT_USES_QT5 define
This commit is contained in:
committed by
sledgehammer999
parent
b7cb53a251
commit
4078fc5e2d
@@ -96,7 +96,7 @@ AddNewTorrentDialog::AddNewTorrentDialog(QWidget *parent)
|
||||
|
||||
// Load categories
|
||||
QStringList categories = session->categories();
|
||||
std::sort(categories.begin(), categories.end(), Utils::String::naturalCompare);
|
||||
std::sort(categories.begin(), categories.end(), Utils::String::naturalCompareCaseInsensitive);
|
||||
QString defaultCategory = settings()->loadValue(KEY_DEFAULTCATEGORY).toString();
|
||||
|
||||
if (!defaultCategory.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user