Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
3c22ab75
by Philipp Hörist at 2018-05-12T23:36:52+02:00
1 changed file:
Changes:
| ... | ... | @@ -1664,7 +1664,15 @@ class Interface: |
| 1664 | 1664 |
if not event:
|
| 1665 | 1665 |
event = app.events.get_first_event(account, jid, type_)
|
| 1666 | 1666 |
if not event:
|
| 1667 |
- return
|
|
| 1667 |
+ # If autopopup_chat_opened = True, then we send out
|
|
| 1668 |
+ # notifications even if a control is open. This means the
|
|
| 1669 |
+ # event is already deleted (because its printed to the
|
|
| 1670 |
+ # control) when the notification is clicked. So try to
|
|
| 1671 |
+ # get a control from account/jid
|
|
| 1672 |
+ ctrl = self.msg_win_mgr.get_control(fjid, account)
|
|
| 1673 |
+ if ctrl is None:
|
|
| 1674 |
+ return
|
|
| 1675 |
+ w = ctrl.parent_win
|
|
| 1668 | 1676 |
|
| 1669 | 1677 |
if type_ == 'printed_chat':
|
| 1670 | 1678 |
ctrl = event.control
|