When a Stack’s root was set with an id of one of the Stack’s current children, there was a crash since the wrong elements were removed from the stack. This commit fixes this by creating a new stack when setStackRoot is called, and destroying all ViewControllers from the previous Stack. Fixes #5117
|
|
||
80 |
|
80 |
|
81 |
|
81 |
|
82 |
|
82 |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
83 |
|
88 |
|
84 |
|
89 |
|
85 |
|
90 |
|
|
|
||
29 |
|
29 |
|
30 |
|
30 |
|
31 |
|
31 |
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
|
32 |
|
|
36 |
|
33 |
|
37 |
|
34 |
|
38 |
|
35 |
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
|
36 |
|
|
43 |
|
37 |
|
44 |
|
38 |
|
45 |
|
39 |
|
|
|
||
14 |
|
14 |
|
15 |
|
15 |
|
16 |
|
16 |
|
17 |
|
|
|
18 |
|
17 |
|
19 |
|
18 |
|
20 |
|
19 |
|
|
|
||
32 |
|
31 |
|
33 |
|
32 |
|
34 |
|
33 |
|
|
34 |
|
|
35 |
|
35 |
|
36 |
|
36 |
|
37 |
|
37 |
|
38 |
|
|
|
|
38 |
|
|
39 |
|
39 |
|
40 |
|
40 |
|
41 |
|
41 |
|
|
|
||
181 |
|
181 |
|
182 |
|
182 |
|
183 |
|
183 |
|
|
184 |
|
|
|
185 |
|
|
184 |
|
186 |
|
185 |
|
|
|
186 |
|
|
|
|
187 |
|
|
|
188 |
|
|
187 |
|
189 |
|
188 |
|
190 |
|
189 |
|
|
|
|
191 |
|
|
190 |
|
192 |
|
191 |
|
193 |
|
192 |
|
194 |
|
193 |
|
195 |
|
194 |
|
|
|
|
196 |
|
|
195 |
|
197 |
|
196 |
|
198 |
|
197 |
|
|
|
|
199 |
|
|
198 |
|
200 |
|
199 |
|
201 |
|
200 |
|
202 |
|
|
|
||
210 |
|
212 |
|
211 |
|
213 |
|
212 |
|
214 |
|
213 |
|
|
|
214 |
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
|
218 |
|
|
|
219 |
|
|
|
220 |
|
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
221 |
|
218 |
|
222 |
|
219 |
|
223 |
|
220 |
|
|
|
||
42 |
|
42 |
|
43 |
|
43 |
|
44 |
|
44 |
|
45 |
|
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
46 |
|
50 |
|
47 |
|
51 |
|
48 |
|
52 |
|
|
|
||
65 |
|
69 |
|
66 |
|
70 |
|
67 |
|
71 |
|
|
72 |
|
|
68 |
|
73 |
|
69 |
|
74 |
|
70 |
|
75 |
|
|
|
||
84 |
|
89 |
|
85 |
|
90 |
|
86 |
|
91 |
|
|
92 |
|
|
87 |
|
93 |
|
88 |
|
94 |
|
89 |
|
95 |
|
|
|
||
257 |
|
263 |
|
258 |
|
264 |
|
259 |
|
265 |
|
|
266 |
|
|
|
267 |
|
|
260 |
|
268 |
|
261 |
|
269 |
|
262 |
|
270 |
|
|
|
||
264 |
|
272 |
|
265 |
|
273 |
|
266 |
|
274 |
|
|
275 |
|
|
267 |
|
276 |
|
268 |
|
277 |
|
269 |
|
278 |
|
|
|
||
275 |
|
284 |
|
276 |
|
285 |
|
277 |
|
286 |
|
|
287 |
|
|
278 |
|
288 |
|
279 |
|
289 |
|
280 |
|
290 |
|
|
|
||
286 |
|
296 |
|
287 |
|
297 |
|
288 |
|
298 |
|
|
299 |
|
|
|
300 |
|
|
289 |
|
301 |
|
290 |
|
302 |
|
291 |
|
|
|
292 |
|
|
|
|
303 |
|
|
|
304 |
|
|
293 |
|
305 |
|
294 |
|
306 |
|
295 |
|
307 |
|
296 |
|
308 |
|
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
|
312 |
|
|
|
313 |
|
|
|
314 |
|
|
|
315 |
|
|
|
316 |
|
|
|
317 |
|
|
297 |
|
318 |
|
298 |
|
319 |
|
299 |
|
320 |
|
|
|
||
3 |
|
3 |
|
4 |
|
4 |
|
5 |
|
5 |
|
6 |
|
|
|
|
6 |
|
|
7 |
|
7 |
|
8 |
|
8 |
|
9 |
|
9 |
|
|
|
||
12 |
|
12 |
|
13 |
|
13 |
|
14 |
|
14 |
|
15 |
|
|
|
|
15 |
|
|
|
16 |
|
|
16 |
|
17 |
|
17 |
|
18 |
|
18 |
|
19 |
|
|
|
||
39 |
|
40 |
|
40 |
|
41 |
|
41 |
|
42 |
|
|
43 |
|
|
42 |
|
44 |
|
43 |
|
45 |
|
44 |
|
46 |
|
|
|
||
73 |
|
75 |
|
74 |
|
76 |
|
75 |
|
77 |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
76 |
|
87 |
|
77 |
|
88 |
|
78 |
|
89 |
|
|
|
||
83 |
|
83 |
|
84 |
|
84 |
|
85 |
|
85 |
|
|
86 |
|
|
86 |
|
87 |
|
87 |
|
88 |
|
88 |
|
89 |
|
|
|
||
19 |
|
19 |
|
20 |
|
20 |
|
21 |
|
21 |
|
22 |
|
|
|
|
22 |
|
|
23 |
|
23 |
|