[GME-commit] GMESRC/GME/Gme NewXmlbackendProjDlg.cpp,1.2,1.3
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu Sep 27 08:27:01 CDT 2007
Update of /project/gme-repository/GMESRC/GME/Gme
In directory escher:/tmp/cvs-serv7567
Modified Files:
NewXmlbackendProjDlg.cpp
Log Message:
Little more validation.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: NewXmlbackendProjDlg.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/NewXmlbackendProjDlg.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NewXmlbackendProjDlg.cpp 2 Jun 2007 15:30:54 -0000 1.2
--- NewXmlbackendProjDlg.cpp 27 Sep 2007 13:26:59 -0000 1.3
***************
*** 119,130 ****
{
UpdateData();
m_connectionString = "MGX=\"";
! m_connectionString += m_location;
// http://escher.isis.vanderbilt.edu/JIRA/browse/GME-148 : JIRA entry created
// if m_location contains a tailing '\' then no need for this
! if( m_location.TrimRight().Right(1) != '\\')
m_connectionString += "\\";
! m_connectionString += m_projectName;
m_connectionString += "\"";
--- 119,135 ----
{
UpdateData();
+ if( m_projectName.Trim().IsEmpty() || m_location.Trim().IsEmpty())
+ {
+ AfxMessageBox( "Project location and name must not be empty!");
+ return;
+ }
m_connectionString = "MGX=\"";
! m_connectionString += m_location.Trim();
// http://escher.isis.vanderbilt.edu/JIRA/browse/GME-148 : JIRA entry created
// if m_location contains a tailing '\' then no need for this
! if( m_location.TrimRight().Right(1) != '\\')
m_connectionString += "\\";
! m_connectionString += m_projectName.Trim();
m_connectionString += "\"";
More information about the GME-commit
mailing list