Skip to content

Commit

Permalink
PatchUnicode-1046 v0.14 履歴削除に対応できていなかったので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
dep5 committed Jun 10, 2022
1 parent e8efdf5 commit e642bca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sakura_core/dlg/CDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,15 +757,16 @@ static void DeleteRecentItem(
return;
}

// コンボボックスのリストアイテム削除
Combo_DeleteString( hwndCombo, nIndex );

// 履歴項目を削除
int nRecentIndex = pRecent->FindItemByText( cItemText.GetStringPtr() );
// お気に入りチェック
if( pRecent->IsFavorite(nRecentIndex) ){
return;
}

// コンボボックスのリストアイテム削除
Combo_DeleteString( hwndCombo, nIndex );

// 履歴項目を削除
if( 0 <= nRecentIndex ){
pRecent->DeleteItem(nRecentIndex);
}
Expand Down

0 comments on commit e642bca

Please sign in to comment.