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;
}