Fix DB Restriction when adding a new server [Ashesh Vashi]
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Mon, 11 May 2009 08:55:21 +0000 (08:55 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Mon, 11 May 2009 08:55:21 +0000 (08:55 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7860 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/dlg/dlgServer.cpp

index 7a740b47c1640109bc24468e0b3d95b87e92c530..a7a3905aacb169b93be099beb4afba9c730baeef 100644 (file)
@@ -295,10 +295,12 @@ pgObject *dlgServer::CreateObject(pgCollection *collection)
 {
     wxString name=GetName();
 
-    pgObject *obj=new pgServer(GetName(), txtDescription->GetValue(), cbDatabase->GetValue(), 
+    pgServer *obj=new pgServer(GetName(), txtDescription->GetValue(), cbDatabase->GetValue(), 
         txtUsername->GetValue(), StrToLong(txtPort->GetValue()), 
-               chkTryConnect->GetValue() && chkStorePwd->GetValue(), 
-               chkRestore->GetValue(), cbSSL->GetCurrentSelection());
+        chkTryConnect->GetValue() && chkStorePwd->GetValue(), 
+        chkRestore->GetValue(), cbSSL->GetCurrentSelection());
+
+    obj->iSetDbRestriction(txtDbRestriction->GetValue().Trim());
 
     return obj;
 }