Thread: SVN Commit by andreas: r4432 - trunk/pgadmin3/src/dlg

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

From
svn@pgadmin.org
Date:
Author: andreas
Date: 2005-09-10 18:24:48 +0100 (Sat, 10 Sep 2005)
New Revision: 4432

Modified:
   trunk/pgadmin3/src/dlg/dlgFunction.cpp
Log:
Fix trigger function detection

Modified: trunk/pgadmin3/src/dlg/dlgFunction.cpp
===================================================================
--- trunk/pgadmin3/src/dlg/dlgFunction.cpp    2005-09-06 19:07:50 UTC (rev 4431)
+++ trunk/pgadmin3/src/dlg/dlgFunction.cpp    2005-09-10 17:24:48 UTC (rev 4432)
@@ -142,7 +142,7 @@
     // the listview's column that contains the type name
     typeColNo = (connection->BackendMinimumVersion(7, 5) ? 1 : 0);

-    if (factory == &triggerFunctionFactory)
+    if (factory != &triggerFunctionFactory)
     {
         if (typeColNo)
             lstArguments->CreateColumns(0, _("Name"), _("Type"));
@@ -258,7 +258,7 @@
             types.Add(tr.GetQuotedSchemaPrefix() + dt.QuotedFullName());

             cbDatatype->Append(tr.GetSchemaPrefix() + dt.FullName());
-            if (factory == &triggerFunctionFactory)
+            if (factory != &triggerFunctionFactory)
                 cbReturntype->Append(tr.GetSchemaPrefix() + dt.FullName());
             tr.MoveNext();
         }