Commit bf62c35
committed
Fix the error dialog when dismissing the Ctrl+K palette (#21)
Choosing a result or pressing Esc calls Close(), which moves focus off the
palette and raises Deactivated while the close is still running. That
handler called Close() a second time, and WPF answers that with
"Cannot set Visibility to Visible or call Show, ShowDialog, Close, or
WindowInteropHelper.EnsureHandle while a Window is closing."
Both ordinary ways of dismissing the palette go through Close(), so the
error appeared on almost every search. The Deactivated handler now closes
only when a close is not already in progress.
Reported by grumpymojo on 6.2.14-B16.1 parent fd9729f commit bf62c35
1 file changed
Lines changed: 26 additions & 1 deletion
File tree
- hmailserver/source/Tools/ControlPanel/Views
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
88 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
89 | 100 | | |
90 | 101 | | |
91 | 102 | | |
| |||
170 | 181 | | |
171 | 182 | | |
172 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
173 | 198 | | |
174 | 199 | | |
0 commit comments