mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fixed bugs in crash dump finding and in beta version
This commit is contained in:
parent
91e1330b59
commit
f3a4b54601
2 changed files with 2 additions and 1 deletions
|
@ -191,6 +191,7 @@ namespace Global {
|
||||||
QFile beta(cExeDir() + qsl("TelegramBeta_data/tdata/beta"));
|
QFile beta(cExeDir() + qsl("TelegramBeta_data/tdata/beta"));
|
||||||
if (cBetaVersion()) {
|
if (cBetaVersion()) {
|
||||||
cForceWorkingDir(cExeDir() + qsl("TelegramBeta_data/"));
|
cForceWorkingDir(cExeDir() + qsl("TelegramBeta_data/"));
|
||||||
|
QDir().mkpath(cWorkingDir() + qstr("tdata"));
|
||||||
if (*BetaPrivateKey) {
|
if (*BetaPrivateKey) {
|
||||||
cSetBetaPrivateKey(QByteArray(BetaPrivateKey));
|
cSetBetaPrivateKey(QByteArray(BetaPrivateKey));
|
||||||
}
|
}
|
||||||
|
|
|
@ -2028,7 +2028,7 @@ LastCrashedWindow::LastCrashedWindow()
|
||||||
if (!possibleDump.startsWith('/')) {
|
if (!possibleDump.startsWith('/')) {
|
||||||
possibleDump = dumpspath + '/' + possibleDump;
|
possibleDump = dumpspath + '/' + possibleDump;
|
||||||
}
|
}
|
||||||
if (!possibleDump.endsWith('.dmp')) {
|
if (!possibleDump.endsWith(qstr(".dmp"))) {
|
||||||
possibleDump += qsl(".dmp");
|
possibleDump += qsl(".dmp");
|
||||||
}
|
}
|
||||||
QFileInfo possibleInfo(possibleDump);
|
QFileInfo possibleInfo(possibleDump);
|
||||||
|
|
Loading…
Add table
Reference in a new issue