[commit] r2293 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Fri Aug 16 19:08:26 CDT 2013
Author: ksmyth
Date: Fri Aug 16 19:08:26 2013
New Revision: 2293
Log:
'Default extension' for saving mga files
Modified:
trunk/GME/Gme/MgaOpenDlg.cpp
Modified: trunk/GME/Gme/MgaOpenDlg.cpp
==============================================================================
--- trunk/GME/Gme/MgaOpenDlg.cpp Fri Aug 16 10:49:17 2013 (r2292)
+++ trunk/GME/Gme/MgaOpenDlg.cpp Fri Aug 16 19:08:26 2013 (r2293)
@@ -141,6 +141,8 @@
(flag_create ? 0 : OFN_FILEMUSTEXIST), filter);
if (!folderPathHint.IsEmpty())
dlg.m_ofn.lpstrInitialDir = folderPathHint.GetBuffer(_MAX_PATH);
+ if (allowXme == false && openFileDialog == false)
+ dlg.m_ofn.lpstrDefExt = L"mga";
if( dlg.DoModal() == IDOK )
{
@@ -149,7 +151,7 @@
if (allowXme == false && openFileDialog == false)
{
- return CString(L"MGA=") + dlg.GetPathName() + L".mga";
+ return CString(L"MGA=") + dlg.GetPathName();
}
if( ext == _T("mga") || ext == _T("mta") )
conn = CString(_T("MGA=")) + dlg.GetPathName();
More information about the gme-commit
mailing list