custom dialogs should inherit from CustomDialog... also, be sure to return DialogResult.OK before closing dialog
This commit is contained in:
parent
cc1ca6fa60
commit
5358a28c7c
@ -140,7 +140,7 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
}
|
||||
}
|
||||
|
||||
public partial class NewDialog : Dialog
|
||||
public partial class NewDialog : CustomDialog
|
||||
{
|
||||
public NewDialog()
|
||||
{
|
||||
@ -637,6 +637,8 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user