mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Several crashes fixed.
This commit is contained in:
@@ -90,14 +90,7 @@ namespace {
|
||||
|
||||
AppClass *AppObject = 0;
|
||||
|
||||
Application::Application(int &argc, char **argv) : QApplication(argc, argv)
|
||||
, _secondInstance(false)
|
||||
#ifndef TDESKTOP_DISABLE_AUTOUPDATE
|
||||
, _updateReply(0)
|
||||
, _updateThread(0)
|
||||
, _updateChecker(0)
|
||||
#endif
|
||||
{
|
||||
Application::Application(int &argc, char **argv) : QApplication(argc, argv) {
|
||||
QByteArray d(QFile::encodeName(QDir(cWorkingDir()).absolutePath()));
|
||||
char h[33] = { 0 };
|
||||
hashMd5Hex(d.constData(), d.size(), h);
|
||||
@@ -905,6 +898,12 @@ void AppClass::call_handleHistoryUpdate() {
|
||||
Notify::handlePendingHistoryUpdate();
|
||||
}
|
||||
|
||||
void AppClass::call_handleUnreadCounterUpdate() {
|
||||
if (auto w = App::wnd()) {
|
||||
w->updateUnreadCounter();
|
||||
}
|
||||
}
|
||||
|
||||
void AppClass::killDownloadSessions() {
|
||||
uint64 ms = getms(), left = MTPAckSendWaiting + MTPKillFileSessionTimeout;
|
||||
for (QMap<int32, uint64>::iterator i = killDownloadSessionTimes.begin(); i != killDownloadSessionTimes.end(); ) {
|
||||
|
Reference in New Issue
Block a user