Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

「ファイル名の簡易表示」設定における更新ボタンの不具合修正 #1479

Merged
1 commit merged into from Dec 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sakura_core/prop/CPropComFileName.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ INT_PTR CPropFileName::DispatchEvent( HWND hwndDlg, UINT uMsg, WPARAM wParam, LP
break;

case IDC_BUTTON_FNAME_UPD: // 更新
::DlgItem_GetText( hwndDlg, IDC_EDIT_FNAME_FROM, szFrom, _MAX_PATH );
::DlgItem_GetText( hwndDlg, IDC_EDIT_FNAME_TO, szTo, _MAX_PATH );
if( -1 != nIndex ){
::DlgItem_GetText( hwndDlg, IDC_EDIT_FNAME_FROM, szFrom, _MAX_PATH );
::DlgItem_GetText( hwndDlg, IDC_EDIT_FNAME_TO, szTo, _MAX_PATH );
if( -1 != SetListViewItem_FILENAME( hListView, nIndex, szFrom, szTo, false ) ){
return TRUE;
}
}else{
// 未選択でリストにひとつも項目がない場合は追加しておく
// 項目を選択していない理由が「リストに項目がない」であれば、更新ボタンで項目を追加できるようにする
if( 0 == ListView_GetItemCount( hListView ) ){
if( -1 != SetListViewItem_FILENAME( hListView, 0, szFrom, szTo, true ) ){
return TRUE;
Expand Down