Commit db38ea2
committed
Close editor when a conversation is deleted
Added a connection to ChatManager::conversationDeleted in ChatEditor.
When a conversation is deleted, the handler opens a temporary editor for
the conversation ID (using EditorManager::openEditorWithContents with
flags that keep it hidden) and immediately closes it with
EditorManager::closeEditors.
This forces the editor manager to clean up any open editors that were
referencing the deleted conversation.1 parent a9c716f commit db38ea2
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
129 | 144 | | |
130 | 145 | | |
131 | 146 | | |
| |||
0 commit comments