fixed bugs in crash dump finding and in beta version

This commit is contained in:
John Preston 2016-02-05 01:16:25 +03:00
parent 91e1330b59
commit f3a4b54601
2 changed files with 2 additions and 1 deletions

View File

@ -191,6 +191,7 @@ namespace Global {
QFile beta(cExeDir() + qsl("TelegramBeta_data/tdata/beta"));
if (cBetaVersion()) {
cForceWorkingDir(cExeDir() + qsl("TelegramBeta_data/"));
QDir().mkpath(cWorkingDir() + qstr("tdata"));
if (*BetaPrivateKey) {
cSetBetaPrivateKey(QByteArray(BetaPrivateKey));
}

View File

@ -2028,7 +2028,7 @@ LastCrashedWindow::LastCrashedWindow()
if (!possibleDump.startsWith('/')) {
possibleDump = dumpspath + '/' + possibleDump;
}
if (!possibleDump.endsWith('.dmp')) {
if (!possibleDump.endsWith(qstr(".dmp"))) {
possibleDump += qsl(".dmp");
}
QFileInfo possibleInfo(possibleDump);