Skip to content

Commit

Permalink
PatchUnicode-1046 v0.3 コンボボックスの履歴削除に対応 #1255
Browse files Browse the repository at this point in the history
  • Loading branch information
dep5 committed Apr 23, 2021
1 parent 1c336a4 commit 1a1e810
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sakura_core/dlg/CDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,11 +740,16 @@ static void DeleteRecentItem(
return;
}

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

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

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

0 comments on commit 1a1e810

Please sign in to comment.