Web pgadmin.org
 Home 
 ·  ·  ·  ·  ·  ·  · 
CVS Commit by andreas: preliminary fix for ip address checking

CVS Commit by andreas: preliminary fix for ip address checking



Log Message:
-----------
preliminary fix for ip address checking

Modified Files:
--------------
    pgadmin3/src/ui:
        dlgHbaConfig.cpp (r1.4 -> r1.5)

Index: dlgHbaConfig.cpp
===================================================================
RCS file: /projects/pgadmin3/src/ui/dlgHbaConfig.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lsrc/ui/dlgHbaConfig.cpp -Lsrc/ui/dlgHbaConfig.cpp -u -w -r1.4 -r1.5
--- src/ui/dlgHbaConfig.cpp
+++ src/ui/dlgHbaConfig.cpp
@@ -291,10 +291,11 @@
     stOption->Enable(needOption);
     txtOption->Enable(needOption);
 
-    bool ipValid=chkEnabled->GetValue() || cbType->GetSelection() == pgHbaConfigLine::PGC_LOCAL;
+    bool ipValid=!chkEnabled->GetValue() || !needIp;
     if (!ipValid)
     {
-
+        // we should check for validity of txtIPaddress->GetValue() here
+        ipValid = true;
     }
     btnOK->Enable(cbType->GetSelection() >= 0 && !database.IsEmpty() && !user.IsEmpty() && 
             cbMethod->GetSelection() >= 0 && ipValid);


Home | Main Index | Thread Index

top