Author: dpage
Date: 2005-10-30 16:35:39 +0000 (Sun, 30 Oct 2005)
New Revision: 4623
Modified:
trunk/pgadmin3/src/dlg/dlgProperty.cpp
Log:
Don't allow ACL modification to enable to OK button for new objects
Modified: trunk/pgadmin3/src/dlg/dlgProperty.cpp
===================================================================
--- trunk/pgadmin3/src/dlg/dlgProperty.cpp 2005-10-30 16:34:34 UTC (rev 4622)
+++ trunk/pgadmin3/src/dlg/dlgProperty.cpp 2005-10-30 16:35:39 UTC (rev 4623)
@@ -1156,7 +1156,9 @@
void dlgSecurityProperty::EnableOK(bool enable)
{
- if (securityChanged)
+ // Don't enable the OK button if the object isn't yet created,
+ // leave that to the object dialog.
+ if (securityChanged && GetObject())
{
wxString sql=GetSql();
if (sql.IsEmpty())