1146
1146
// it means that we had an open file and we are opening a different one
1147
1147
delete m_oneInstancePerFileChecker;
1149
1150
wxString lockFileName = fn.GetFullPath() + wxT( ".lock" );
1150
1152
lockFileName.Replace( wxT( "/" ), wxT( "_" ) );
1151
1154
// We can have filenames coming from Windows, so also convert Windows separator
1152
1155
lockFileName.Replace( wxT( "\\" ), wxT( "_" ) );
1153
1157
m_oneInstancePerFileChecker = new wxSingleInstanceChecker( lockFileName );
1154
1159
if( m_oneInstancePerFileChecker &&
1155
1160
m_oneInstancePerFileChecker->IsAnotherRunning() )