From: | Timon <timosha(at)gmail(dot)com> |
---|---|
To: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | [PATCH] enable OK button when change type name |
Date: | 2013-12-04 11:03:56 |
Message-ID: | CAAeC-SvrwOQuxhp54DgN-yQsq_cRUsoAj4Uk3vvMAbuhUWYY+Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
---
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 | Content-Type | Size |
---|---|---|
0001-enable-OK-button-when-change-type-name.patch | text/x-patch | 979 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2013-12-04 14:16:07 | Re: Changes in Trigger Firing |
Previous Message | Dhiraj Chawla | 2013-12-04 09:08:21 | Text goes out of header area in html reports |