[GME-commit] GMESRC/Paradigms/MetaGME/MetaInterpreter2004 BON2Component.cpp,1.28,1.29

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Mon Jun 27 16:54:04 CDT 2005


Update of /project/gme-repository/GMESRC/Paradigms/MetaGME/MetaInterpreter2004
In directory escher:/tmp/cvs-serv2070/MetaInterpreter2004

Modified Files:
	BON2Component.cpp 
Log Message:
Preventing giving erroneous default filename to CFileSaveDlg (would crash.)
Notifying user about erroneous paradigm name (special characters, spaces in rootfolder.)


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: BON2Component.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/Paradigms/MetaGME/MetaInterpreter2004/BON2Component.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** BON2Component.cpp	21 Jun 2005 17:16:45 -0000	1.28
--- BON2Component.cpp	27 Jun 2005 15:54:00 -0000	1.29
***************
*** 356,359 ****
--- 356,366 ----
  	initMembers( project);
  
+ 	if ( !Sheet::makeValidParadigmName( m_projectName, std::string()))
+ 	{
+ 		project->consoleMsg("[MetaInterpreter] Invalid characters in paradigm name (Rootfolder name). Please remove spaces and the special characters, except '.' and '_'. ", MSG_ERROR);
+ 		if( !global_vars.silent_mode)
+ 			if( AfxMessageBox("Invalid characters in paradigm name. Continue?", MB_YESNO | MB_ICONWARNING) != IDYES)
+ 				return;
+ 	}
  	if ( Dumper::selectOutputFiles( project, m_projectName, m_dir) > 1)
  	{



More information about the GME-commit mailing list