Thread: [PATCH] enable OK button when change type name
--- pgadmin/dlg/dlgType.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgadmin/dlg/dlgType.cpp b/pgadmin/dlg/dlgType.cpp index 4235a1f..123cada 100644 --- a/pgadmin/dlg/dlgType.cpp +++ b/pgadmin/dlg/dlgType.cpp @@ -688,6 +688,7 @@ void dlgType::OnNameChange(wxCommandEvent &ev) cbCanonical->SetSelection(0); } } + CheckChange(); } @@ -798,7 +799,7 @@ void dlgType::CheckChange() if (type) { - enable = enable && (txtName->GetValue() != type->GetName() + enable = enable && (GetName() != type->GetName() || txtComment->GetValue() != type->GetComment() || cbSchema->GetValue() != type->GetSchema()->GetName() || cbOwner->GetValue() != type->GetOwner() -- 1.8.3.1 -- All bugs reserved
Attachment
Thanks - patch applied. On Wed, Dec 4, 2013 at 11:03 AM, Timon <timosha@gmail.com> wrote: > --- > pgadmin/dlg/dlgType.cpp | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/pgadmin/dlg/dlgType.cpp b/pgadmin/dlg/dlgType.cpp > index 4235a1f..123cada 100644 > --- a/pgadmin/dlg/dlgType.cpp > +++ b/pgadmin/dlg/dlgType.cpp > @@ -688,6 +688,7 @@ void dlgType::OnNameChange(wxCommandEvent &ev) > cbCanonical->SetSelection(0); > } > } > + CheckChange(); > } > > > @@ -798,7 +799,7 @@ void dlgType::CheckChange() > > if (type) > { > - enable = enable && (txtName->GetValue() != type->GetName() > + enable = enable && (GetName() != type->GetName() > || txtComment->GetValue() != > type->GetComment() > || cbSchema->GetValue() != > type->GetSchema()->GetName() > || cbOwner->GetValue() != type->GetOwner() > -- > 1.8.3.1 > > > -- > All bugs reserved > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company