Fixed possible crash in notifications manager.
This commit is contained in:
parent
bb76818cc8
commit
c1067d8fe1
|
@ -76,7 +76,7 @@ Manager::Manager(System *system)
|
||||||
system->settingsChanged(
|
system->settingsChanged(
|
||||||
) | rpl::start_with_next([=](ChangeType change) {
|
) | rpl::start_with_next([=](ChangeType change) {
|
||||||
settingsChanged(change);
|
settingsChanged(change);
|
||||||
}, system->lifetime());
|
}, _lifetime);
|
||||||
}
|
}
|
||||||
|
|
||||||
Manager::QueuedNotification::QueuedNotification(
|
Manager::QueuedNotification::QueuedNotification(
|
||||||
|
|
|
@ -126,6 +126,8 @@ private:
|
||||||
|
|
||||||
mutable QPixmap _hiddenUserpicPlaceholder;
|
mutable QPixmap _hiddenUserpicPlaceholder;
|
||||||
|
|
||||||
|
rpl::lifetime _lifetime;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
Loading…
Reference in New Issue