SVN Commit by andreas: r4563 - trunk/pgadmin3/src/dlg - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by andreas: r4563 - trunk/pgadmin3/src/dlg
Date
Msg-id 200510181644.j9IGi6Fw022536@developer.pgadmin.org
Whole thread Raw
List pgadmin-hackers
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());
 }


pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4562 - in trunk/pgadmin3: src xtra/pgagent
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by andreas: r4564 - in trunk/www/pgadmin3: cnt shots