Index: dlg/dlgServer.cpp
===================================================================
--- dlg/dlgServer.cpp	(revision 7858)
+++ dlg/dlgServer.cpp	(working copy)
@@ -295,11 +295,13 @@
 {
     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;
 }
 
