Skip site navigation (1) Skip section navigation (2)

SVN Commit by andreas: r4563 - trunk/pgadmin3/src/dlg

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by andreas: r4563 - trunk/pgadmin3/src/dlg
Date: 2005-10-18 16:44:06
Message-ID: 200510181644.j9IGi6Fw022536@developer.pgadmin.org (view raw or flat)
Thread:
Lists: 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

Next:From: Andreas PflugDate: 2005-10-18 17:33:19
Subject: Re: Rolling beta 3
Previous:From: svnDate: 2005-10-18 16:21:07
Subject: SVN Commit by dpage: r4562 - in trunk/pgadmin3: src xtra/pgagent

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group