Python-i18: avoid duplicate path entries
This commit is contained in:
parent
48cc1f0461
commit
22fd428664
@ -254,7 +254,7 @@ gettext_languages()
|
||||
static void
|
||||
_add_localedirs(QStringList &pathList, const QString &candidate)
|
||||
{
|
||||
if (!candidate.isEmpty())
|
||||
if (!candidate.isEmpty() && !pathList.contains(candidate))
|
||||
{
|
||||
pathList.prepend(candidate);
|
||||
if (QDir(candidate).cd("lang"))
|
||||
|
Loading…
Reference in New Issue
Block a user