Author: andreas
Date: 2005-10-18 17:44:06 +0100 (Tue, 18 Oct 2005)
New Revision: 4563
Modified:
trunk/pgadmin3/src/dlg/dlgProperty.cpp
Log:
fix refreshing servers node
Modified: trunk/pgadmin3/src/dlg/dlgProperty.cpp
===================================================================
--- trunk/pgadmin3/src/dlg/dlgProperty.cpp 2005-10-18 16:21:06 UTC (rev 4562)
+++ trunk/pgadmin3/src/dlg/dlgProperty.cpp 2005-10-18 16:44:06 UTC (rev 4563)
@@ -1418,5 +1418,7 @@
bool refreshFactory::CheckEnable(pgObject *obj)
{
- return obj != 0;
+ // This isn't really clean... But we don't have a pgObject::CanRefresh() so far,
+ // so it's Good Enough (tm) for now.
+ return obj != 0 && !obj->IsCreatedBy(serverFactory.GetCollectionFactory());
}