From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Timon <timosha(at)gmail(dot)com> |
Cc: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: [PATCH] enable OK button when change type name |
Date: | 2013-12-06 16:38:45 |
Message-ID: | CA+OCxow0MzJ5w3OAKVCJJYc4gCA+d_vgJUqxC8QUDHF3oebd6Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Thanks - patch applied.
On Wed, Dec 4, 2013 at 11:03 AM, Timon <timosha(at)gmail(dot)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(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2013-12-06 17:21:08 | pgAdmin III commit: Remember the last panel used on the Options dialogu |
Previous Message | Dave Page | 2013-12-06 16:38:39 | pgAdmin III commit: Ensure the Type dialogue detects name changes |