2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Beta version 1.6.6: Fix animations engine.

This commit is contained in:
John Preston
2019-04-11 10:43:13 +04:00
parent c310cdbb8c
commit 56b6673e17
2 changed files with 3 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ inline bool in_range(Value &&value, From &&from, Till &&till) {
#define for_const(range_declaration, range_expression) for (range_declaration : std::as_const(range_expression))
template <typename Lambda>
inline void InvokeQueued(QObject *context, Lambda &&lambda) {
inline void InvokeQueued(const QObject *context, Lambda &&lambda) {
QObject proxy;
QObject::connect(&proxy, &QObject::destroyed, context, std::forward<Lambda>(lambda), Qt::QueuedConnection);
}