Skip to content

Commit 30b597a

Browse files
authored
Fix dialog reference in assert dialog handling
1 parent 190bac8 commit 30b597a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/xtd.forms.examples/dialogs/assert_dialog/src/assert_dialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class form1 : public form {
1212
button1.click += delegate_ {
1313
auto dialog = assert_dialog {};
1414
dialog.message("Index must be > 0");
15-
switch(dialog.show_sheet_dialog(*this)) {
15+
switch(dialog.show_sheet_dialog(self_)) {
1616
case forms::dialog_result::abort: application::exit(); break;
1717
case forms::dialog_result::retry: diagnostics::debugger::debug_break(); break;
1818
default: break;

0 commit comments

Comments
 (0)