mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 16:59:55 +00:00
fixed bugs in crash dump finding and in beta version
This commit is contained in:
parent
91e1330b59
commit
f3a4b54601
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user