mirror of https://github.com/procxx/kepka.git
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"));
|
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…
Reference in New Issue