refs #362 Workaround for X-Plane's locale issues

Set original X-Plane's locale back after calling QCoreApplication's constructor.
This commit is contained in:
Michał Garapich
2015-01-07 23:47:42 +01:00
parent d10c2a0709
commit 3acc473612

View File

@@ -99,7 +99,17 @@ public:
{
static int argc = 1;
static char *argv[] = { strdup("X-Plane") };
#ifdef Q_OS_UNIX
/* Workaround for #362 */
char* xplocale = setlocale(LC_ALL, nullptr);
#endif
new QSharedApplication(ptr, argc, argv);
#ifdef Q_OS_UNIX
setlocale(LC_ALL, xplocale);
#endif
}
if (! instance()->inherits("QSharedApplication"))
{