Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5afdf2d

Browse files
committedApr 22, 2021
PatchUnicode-1046 v0.3 コンボボックスの履歴削除に対応 #1255
1 parent d127025 commit 5afdf2d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎sakura_core/dlg/CDialog.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,16 @@ static void DeleteRecentItem(
740740
return;
741741
}
742742

743+
int nRecentIndex = pRecent->FindItemByText( cItemText.GetStringPtr() );
744+
// お気に入りチェック
745+
if (pRecent->IsFavorite(nRecentIndex)) {
746+
return;
747+
}
748+
743749
// コンボボックスのリストアイテム削除
744750
Combo_DeleteString( hwndCombo, nIndex );
745751

746752
// 履歴項目を削除
747-
int nRecentIndex = pRecent->FindItemByText( cItemText.GetStringPtr() );
748753
if( 0 <= nRecentIndex ){
749754
pRecent->DeleteItem(nRecentIndex);
750755
}

0 commit comments

Comments
 (0)
Please sign in to comment.