2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

moved from utf8 to QFile::encode/decodeName

This commit is contained in:
John Preston
2016-02-09 17:42:36 +03:00
parent 839078d32f
commit 001f2e1fe7
5 changed files with 30 additions and 32 deletions

View File

@@ -2919,7 +2919,7 @@ int showCrashReportWindow(const QString &crashdump) {
return 0;
}
QByteArray args[] = { QDir::toNativeSeparators(cExeDir() + cExeName()).toUtf8() };
QByteArray args[] = { QFile::encodeName(QDir::toNativeSeparators(cExeDir() + cExeName())) };
int a_argc = 1;
char *a_argv[1] = { args[0].data() };
QApplication app(a_argc, a_argv);