don't set response value since this causes the dialog to close abruptly; set default button instead to still get 'suggested' theme on gtk
This commit is contained in:
parent
cd3498d78f
commit
f117bad02e
@ -114,7 +114,7 @@ namespace UniversalEditor.UserInterface.Dialogs
|
||||
this.Buttons.Add(new Button(StockType.Cancel, DialogResult.Cancel));
|
||||
|
||||
this.Buttons[0].StockType = StockType.New;
|
||||
this.Buttons[0].ResponseValue = (int)DialogResult.OK;
|
||||
DefaultButton = this.Buttons[0];
|
||||
this.Buttons[0].Click += cmdOK_Click;
|
||||
|
||||
this.Text = "New File";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user