Index: dlgProperty.cpp =================================================================== RCS file: /projects/pgadmin3/src/ui/dlgProperty.cpp,v retrieving revision 1.90 retrieving revision 1.91 diff -Lsrc/ui/dlgProperty.cpp -Lsrc/ui/dlgProperty.cpp -u -w -r1.90 -r1.91 --- src/ui/dlgProperty.cpp +++ src/ui/dlgProperty.cpp @@ -1143,7 +1143,8 @@ } } } - } + }else + securityPage = NULL; } @@ -1155,6 +1156,7 @@ int dlgSecurityProperty::Go(bool modal) { + if (securityPage) securityPage->SetConnection(connection); return dlgProperty::Go(modal); @@ -1163,7 +1165,7 @@ void dlgSecurityProperty::AddGroups(ctlComboBox *comboBox) { - if ((!securityPage || !securityPage->cbGroups) && !comboBox) + if (!((securityPage && securityPage->cbGroups) || comboBox)) return; pgSet *set=connection->ExecuteSet(wxT("SELECT groname FROM pg_group ORDER BY groname")); @@ -1239,7 +1241,10 @@ wxString dlgSecurityProperty::GetGrant(const wxString &allPattern, const wxString &grantObject) { + if (securityPage) return securityPage->GetGrant(allPattern, grantObject, ¤tAcl); + else + return wxString(); }