Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Ensure enum variable values can be set.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.pgadmin.org/trunk@8414 a7884b65-44f6-0310-8a51-81a127f17b15
  • Loading branch information
dpage committed Jun 8, 2010
1 parent 214a010 commit 9522fbc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pgadmin/dlg/dlgDatabase.cpp
Expand Up @@ -550,7 +550,7 @@ void dlgDatabase::SetupVarEditor(int var)
{
chkValue->Hide();
txtValue->Show();
if (typ == wxT("string"))
if (typ == wxT("string") || typ == wxT("enum"))
txtValue->SetValidator(wxTextValidator());
else
txtValue->SetValidator(numericValidator);
Expand Down
2 changes: 1 addition & 1 deletion pgadmin/dlg/dlgFunction.cpp
Expand Up @@ -459,7 +459,7 @@ void dlgFunction::SetupVarEditor(int var)
chkValue->Hide();
txtValue->Show();
txtValue->GetParent()->Layout();
if (typ == wxT("string"))
if (typ == wxT("string") || typ == wxT("enum"))
txtValue->SetValidator(wxTextValidator());
else
txtValue->SetValidator(numericValidator);
Expand Down
2 changes: 1 addition & 1 deletion pgadmin/dlg/dlgRole.cpp
Expand Up @@ -420,7 +420,7 @@ void dlgRole::SetupVarEditor(int var)
chkValue->Hide();
txtValue->Show();
txtValue->GetParent()->Layout();
if (typ == wxT("string"))
if (typ == wxT("string") || typ == wxT("enum"))
txtValue->SetValidator(wxTextValidator());
else
txtValue->SetValidator(numericValidator);
Expand Down
2 changes: 1 addition & 1 deletion pgadmin/dlg/dlgTablespace.cpp
Expand Up @@ -301,7 +301,7 @@ void dlgTablespace::SetupVarEditor(int var)
{
chkValue->Hide();
txtValue->Show();
if (typ == wxT("string"))
if (typ == wxT("string") || typ == wxT("enum"))
txtValue->SetValidator(wxTextValidator());
else
txtValue->SetValidator(numericValidator);
Expand Down
2 changes: 1 addition & 1 deletion pgadmin/dlg/dlgUser.cpp
Expand Up @@ -333,7 +333,7 @@ void dlgUser::SetupVarEditor(int var)
{
chkValue->Hide();
txtValue->Show();
if (typ == wxT("string"))
if (typ == wxT("string") || typ == wxT("enum"))
txtValue->SetValidator(wxTextValidator());
else
txtValue->SetValidator(numericValidator);
Expand Down

0 comments on commit 9522fbc

Please sign in to comment.