mirror of
https://github.com/vale981/tdesktop
synced 2025-03-07 02:31:41 -05:00
fixed crash
This commit is contained in:
parent
cf119568a1
commit
5a38cb4581
1 changed files with 2 additions and 2 deletions
|
@ -1426,7 +1426,7 @@ void Window::notifyShowNext(NotifyWindow *remove) {
|
||||||
if (j == notifyWhenMaps.end()) {
|
if (j == notifyWhenMaps.end()) {
|
||||||
history->clearNotifications();
|
history->clearNotifications();
|
||||||
i = notifyWaiters.erase(i);
|
i = notifyWaiters.erase(i);
|
||||||
if (notifyHistory) notifyWaiter = notifyWaiters.find(notifyHistory);
|
notifyWaiter = notifyHistory ? notifyWaiters.find(notifyHistory) : notifyWaiters.end();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
|
@ -1442,7 +1442,7 @@ void Window::notifyShowNext(NotifyWindow *remove) {
|
||||||
if (!history->currentNotification()) {
|
if (!history->currentNotification()) {
|
||||||
notifyWhenMaps.remove(history);
|
notifyWhenMaps.remove(history);
|
||||||
i = notifyWaiters.erase(i);
|
i = notifyWaiters.erase(i);
|
||||||
if (notifyHistory) notifyWaiter = notifyWaiters.find(notifyHistory);
|
notifyWaiter = notifyHistory ? notifyWaiters.find(notifyHistory) : notifyWaiters.end();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
uint64 when = i.value().when;
|
uint64 when = i.value().when;
|
||||||
|
|
Loading…
Add table
Reference in a new issue