Skip to content

Commit

Permalink
Merge pull request #1479 from kazasaku/feature/add_gettext_and_warning
Browse files Browse the repository at this point in the history
#1479 「ファイル名の簡易表示」設定における更新ボタンの不具合修正
  • Loading branch information
Kohki Akikaze authored Dec 11, 2020
2 parents e71baea + 9e3cfca commit 81de023
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 81de023

Please sign in to comment.