kotatogram-desktop/Telegram/SourceFiles
John Preston 76489a7885 Fix stack overflow in passcode lock check.
A regression was introduced in e209737b1a.

We call MainWindow::doWeReadMentions() in the history paintEvent,
that calls Auth().checkAutoLock() and may start passcode locking.

Passcode locking starts animation and grabs the window content,
calling history paintEvent() which leads to deadlock.

Now we call Auth().checkAutoLock() asyncronously.
2017-09-03 15:45:48 +03:00
..
_other
base Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
boxes Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
calls Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
chat_helpers Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
codegen Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
core Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
data Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
dialogs Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
history Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
inline_bots Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
intro Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
lang Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
media Return not_null<History*> in App::history(). 2017-09-03 15:45:43 +03:00
mtproto Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
overview Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
platform Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
profile Return not_null<History*> in App::history(). 2017-09-03 15:45:43 +03:00
settings Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
storage Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
ui Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
window Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
apiwrap.cpp Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
apiwrap.h
app.cpp Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
app.h Return not_null<History*> in App::history(). 2017-09-03 15:45:43 +03:00
application.cpp Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
application.h
auth_session.cpp Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
auth_session.h
autoupdater.cpp
autoupdater.h
config.h
countries.h
facades.cpp Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
facades.h
layerwidget.cpp
layerwidget.h
layout.cpp
layout.h
logs.cpp Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
logs.h Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
main.cpp
mainwidget.cpp Fix stack overflow in passcode lock check. 2017-09-03 15:45:48 +03:00
mainwidget.h Return not_null<History*> in App::history(). 2017-09-03 15:45:43 +03:00
mainwindow.cpp Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
mainwindow.h
mediaview.cpp Highlight all mentions when marking them read. 2017-08-30 19:15:53 +03:00
mediaview.h
messenger.cpp Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
messenger.h Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
observer_peer.cpp
observer_peer.h Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00
overviewwidget.cpp Return not_null<History*> in App::history(). 2017-09-03 15:45:43 +03:00
overviewwidget.h Return not_null<History*> in App::history(). 2017-09-03 15:45:43 +03:00
passcodewidget.cpp
passcodewidget.h
qt_static_plugins.cpp
settings.cpp
settings.h
shortcuts.cpp Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
shortcuts.h
stdafx.cpp
stdafx.h Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
structs.cpp Replace t_assert() with Assert(). 2017-08-30 19:15:42 +03:00
structs.h Replace QFlags with base::flags. 2017-09-03 15:45:47 +03:00