mirror of https://github.com/Icinga/icinga2.git
Make sure the OK button is the default item for the Connect dialog
refs #10042
This commit is contained in:
parent
e5cd1f92de
commit
ee95e10128
|
@ -1575,7 +1575,7 @@
|
|||
<property name="Yes">0</property>
|
||||
<property name="minimum_size"></property>
|
||||
<property name="name">m_Buttons</property>
|
||||
<property name="permission">none</property>
|
||||
<property name="permission">protected</property>
|
||||
<event name="OnApplyButtonClick"></event>
|
||||
<event name="OnCancelButtonClick"></event>
|
||||
<event name="OnContextHelpButtonClick"></event>
|
||||
|
|
|
@ -52,6 +52,8 @@ ConnectForm::ConnectForm(wxWindow *parent, const Url::Ptr& url)
|
|||
m_PortText->SetValue(hostport[1]);
|
||||
else
|
||||
m_PortText->SetValue("5665");
|
||||
|
||||
SetDefaultItem(m_ButtonsOK);
|
||||
}
|
||||
|
||||
Url::Ptr ConnectForm::GetUrl(void) const
|
||||
|
|
|
@ -142,9 +142,6 @@ ConnectFormBase::ConnectFormBase( wxWindow* parent, wxWindowID id, const wxStrin
|
|||
wxBoxSizer* m_ButtonsSizer;
|
||||
m_ButtonsSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
wxStdDialogButtonSizer* m_Buttons;
|
||||
wxButton* m_ButtonsOK;
|
||||
wxButton* m_ButtonsCancel;
|
||||
m_Buttons = new wxStdDialogButtonSizer();
|
||||
m_ButtonsOK = new wxButton( m_ButtonsPanel, wxID_OK );
|
||||
m_Buttons->AddButton( m_ButtonsOK );
|
||||
|
|
|
@ -77,6 +77,9 @@ class ConnectFormBase : public wxDialog
|
|||
wxTextCtrl* m_PortText;
|
||||
wxTextCtrl* m_UserText;
|
||||
wxTextCtrl* m_PasswordText;
|
||||
wxStdDialogButtonSizer* m_Buttons;
|
||||
wxButton* m_ButtonsOK;
|
||||
wxButton* m_ButtonsCancel;
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Reference in New Issue