--- 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
From 70111dfc6fa76dc06e97c496e01db8019482afa7 Mon Sep 17 00:00:00 2001 From: Timon <timo...@gmail.com> Date: Wed, 4 Dec 2013 16:59:49 +0600 Subject: [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
-- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers