Don't offer the Run Now option on the Jobs node.
authordpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 4 Jun 2009 08:13:15 +0000 (08:13 +0000)
committerdpage <dpage@a7884b65-44f6-0310-8a51-81a127f17b15>
Thu, 4 Jun 2009 08:13:15 +0000 (08:13 +0000)
git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7893 a7884b65-44f6-0310-8a51-81a127f17b15

pgadmin/agent/pgaJob.cpp

index 927f36a4f96a574c30e2c85dffe3971a85cfa14b..5c4d65945bfade5ce591b3eac499d0ed077a3159 100644 (file)
@@ -304,7 +304,7 @@ bool runNowFactory::CheckEnable(pgObject *obj)
 {
     if (obj)
     {
-        if (obj->GetMetaType() == PGM_JOB)
+        if (obj->GetMetaType() == PGM_JOB && !obj->IsCollection())
             return true;
     }
     return false;