1#![allow(deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/crashes"#]
2// Copyright © SixtyFPS GmbH <info@slint.dev>
3// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
4
5App := Window {
6 for menu-item in [{children: ["hello"]}] : VerticalLayout {
7 Rectangle {
8 popup := PopupWindow {
9 Rectangle {
10 for child in menu-item.children : Rectangle {
11 }
12 }
13 }
14 }
15 }
16
17 if true : Rectangle {
18 Rectangle {
19 TouchArea {
20 clicked => {
21 popup2.show();
22 }
23 }
24 popup2 := PopupWindow { }
25 }
26 }
27
28 // Issue #1132
29 for menu-item in [0] : TouchArea {
30 clicked => { popup3.show(); }
31 if true: TouchArea {
32 clicked => { popup3.show(); }
33 }
34 popup3 := PopupWindow { }
35 }
36
37}
38
39}
40