mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Fix compilation on Windows.
This commit is contained in:
parent
d413c2061c
commit
d9e51c220e
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ Utils::String::NaturalCompare::NaturalCompare()
|
|||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
|
||||
#if defined(Q_OS_WIN)
|
||||
// Without ICU library, QCollator doesn't support `setNumericMode(true)` on OS older than Win7
|
||||
if(SysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7)
|
||||
if(QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7)
|
||||
return;
|
||||
#endif
|
||||
m_collator.setNumericMode(true);
|
||||
|
@ -124,7 +124,7 @@ bool Utils::String::NaturalCompare::operator()(const QString &l, const QString &
|
|||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
|
||||
#if defined(Q_OS_WIN)
|
||||
// Without ICU library, QCollator doesn't support `setNumericMode(true)` on OS older than Win7
|
||||
if(SysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7)
|
||||
if(QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7)
|
||||
return lessThan(l, r);
|
||||
#endif
|
||||
return (m_collator.compare(l, r) < 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue