mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
compare language, country and script instead of address in localePrivateIndex() function
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
c6b24cc01e
commit
8e8c5658d5
1 changed files with 3 additions and 1 deletions
|
@ -506,7 +506,9 @@ QDataStream &operator>>(QDataStream &ds, QLocale &l)
|
|||
static quint16 localePrivateIndex(const QLocalePrivate *p)
|
||||
{
|
||||
for (int i = 0; i < localeTblSize; i++) {
|
||||
if (&localeTbl[i] == p)
|
||||
if (p->m_language == localeTbl[i].m_language
|
||||
&& p->m_country == localeTbl[i].m_country
|
||||
&& p->m_script == localeTbl[i].m_script)
|
||||
return i;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue