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

SVN Commit by andreas: r4413 - trunk/pgadmin3/src/base

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by andreas: r4413 - trunk/pgadmin3/src/base
Date: 2005-08-21 23:25:56
Message-ID: 200508212325.j7LNPu0l019601@developer.pgadmin.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Author: andreas
Date: 2005-08-22 00:25:56 +0100 (Mon, 22 Aug 2005)
New Revision: 4413

Modified:
   trunk/pgadmin3/src/base/factory.cpp
Log:
early factory fix

Modified: trunk/pgadmin3/src/base/factory.cpp
===================================================================
--- trunk/pgadmin3/src/base/factory.cpp	2005-08-21 12:18:52 UTC (rev 4412)
+++ trunk/pgadmin3/src/base/factory.cpp	2005-08-21 23:25:56 UTC (rev 4413)
@@ -289,7 +289,10 @@
 
 actionFactory::actionFactory(menuFactoryList *list) : menuFactory(list)
 {
-    id = list->GetCount()+MNU_ACTION -1;
+    if (list)
+        id = list->GetCount()+MNU_ACTION -1;
+	else
+        id=0;
     context=false;
 }
 


pgadmin-hackers by date

Next:From: Andreas PflugDate: 2005-08-21 23:27:19
Subject: Re: pgAdmin3 svn 4409 on Debian - segfault
Previous:From: Andreas PflugDate: 2005-08-21 23:20:32
Subject: Re: Splash screen

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