From f3a4b5460196ff3a6b1e24ce09596e0b1e07d10a Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 5 Feb 2016 01:16:25 +0300 Subject: [PATCH] fixed bugs in crash dump finding and in beta version --- Telegram/SourceFiles/facades.cpp | 1 + Telegram/SourceFiles/window.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/facades.cpp b/Telegram/SourceFiles/facades.cpp index e43410051..4cb9c6202 100644 --- a/Telegram/SourceFiles/facades.cpp +++ b/Telegram/SourceFiles/facades.cpp @@ -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)); } diff --git a/Telegram/SourceFiles/window.cpp b/Telegram/SourceFiles/window.cpp index 6525b79dd..43c2b25a8 100644 --- a/Telegram/SourceFiles/window.cpp +++ b/Telegram/SourceFiles/window.cpp @@ -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);