This Qt bug was fixed in 4.7
This commit is contained in:
parent
a1baa06dbf
commit
c1e2cbe800
@ -46,11 +46,14 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void LoadTranslation(const QString& prefix, const QString& path) {
|
void LoadTranslation(const QString& prefix, const QString& path) {
|
||||||
|
#if QT_VERSION < 0x040700
|
||||||
// QTranslator::load will try to open and read "clementine" if it exists,
|
// QTranslator::load will try to open and read "clementine" if it exists,
|
||||||
// without checking if it's a file first.
|
// without checking if it's a file first.
|
||||||
|
// This was fixed in Qt 4.7
|
||||||
QFileInfo maybe_clementine_directory(path + "/clementine");
|
QFileInfo maybe_clementine_directory(path + "/clementine");
|
||||||
if (maybe_clementine_directory.exists() && !maybe_clementine_directory.isFile())
|
if (maybe_clementine_directory.exists() && !maybe_clementine_directory.isFile())
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
QTranslator* t = new QTranslator;
|
QTranslator* t = new QTranslator;
|
||||||
if (t->load(prefix + "_" + QLocale::system().name(), path))
|
if (t->load(prefix + "_" + QLocale::system().name(), path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user