Skip to content

Commit

Permalink
SetGrepFolderを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
dep5 committed Jun 10, 2022
1 parent c757add commit 721e7b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sakura_core/dlg/CDlgGrep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ int CDlgGrep::DoModal( HINSTANCE hInstance, HWND hwndParent, const WCHAR* pszCur
if( m_szFile[0] == L'\0' && m_pShareData->m_sSearchKeywords.m_aGrepFiles.size() ){
wcscpy( m_szFile, m_pShareData->m_sSearchKeywords.m_aGrepFiles[0] ); /* 検索ファイル */
}
if( m_pShareData->m_Common.m_sSearch.m_bGrepDefaultFolder && m_szCurrentFilePath[0] != L'\0' ){
if( m_szFolder[0] == L'\0' && m_pShareData->m_Common.m_sSearch.m_bGrepDefaultFolder &&
m_szCurrentFilePath[0] != L'\0' ){
WCHAR szWorkFile[MAX_PATH];
SplitPath_FolderAndFile( m_szCurrentFilePath, m_szFolder, szWorkFile );
SetGrepFolder( GetItemHwnd(IDC_COMBO_FOLDER), m_szFolder );
}else
if( m_szFolder[0] == L'\0' && m_pShareData->m_sSearchKeywords.m_aGrepFolders.size() ){
wcscpy( m_szFolder, m_pShareData->m_sSearchKeywords.m_aGrepFolders[0] ); /* 検索フォルダー */
Expand Down

0 comments on commit 721e7b9

Please sign in to comment.