comparison src/index.cpp @ 8:4967d1e2b30c

Alert when not mask in batch print mode.
author pyon@macmini
date Fri, 01 Nov 2013 18:44:37 +0900
parents 7ac7d28699af
children 29021e6e1ebe
comparison
equal deleted inserted replaced
7:7ac7d28699af 8:4967d1e2b30c
1 // Filename : index.cpp 1 // Filename : index.cpp
2 // Last Change: 16-Oct-2013. 2 // Last Change: 01-Nov-2013.
3 // 3 //
4 4
5 #include "index.h" 5 #include "index.h"
6 #include "db.h" 6 #include "db.h"
7 #include "wx/wxsqlite3.h" 7 #include "wx/wxsqlite3.h"
89 year = wxString::Format( wxT("%d"), y ); 89 year = wxString::Format( wxT("%d"), y );
90 } 90 }
91 91
92 92
93 wxString date = dt.Format( wxT("%Y%m%d") ); 93 wxString date = dt.Format( wxT("%Y%m%d") );
94 wxString datedir = m_rootdir + wxFILE_SEP_PATH + year + wxFILE_SEP_PATH + date; 94 wxString datadir = m_rootdir + wxFILE_SEP_PATH + year + wxFILE_SEP_PATH + date;
95 if ( !wxDir::Exists( datedir ) ) { 95 if ( !wxDir::Exists( datadir ) ) {
96 wxMessageBox( wxT("フォルダが存在しません.") + datedir ); 96 wxMessageBox( wxT("フォルダが存在しません.") + datadir );
97 return; 97 return;
98 } 98 }
99 99
100 UpdateIndex( datedir, date ); 100 UpdateIndex( datadir, date );
101 101
102 UpdateList(); 102 UpdateList();
103 wxMessageBox( wxT("インデックス作成が終了しました.") ); 103 wxMessageBox( wxT("インデックス作成が終了しました.") );
104 } 104 }
105 105