[PATCH] enable OK button when change type name - Mailing list pgadmin-hackers

From Timon
Subject [PATCH] enable OK button when change type name
Date
Msg-id CAAeC-SvrwOQuxhp54DgN-yQsq_cRUsoAj4Uk3vvMAbuhUWYY+Q@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] enable OK button when change type name  (Dave Page <dpage@pgadmin.org>)
List 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

pgadmin-hackers by date:

Previous
From: Dhiraj Chawla
Date:
Subject: Text goes out of header area in html reports
Next
From: Dinesh Kumar
Date:
Subject: Re: PATCH: Choose best width for Data Output columns of Query tool