From 6a175bc3fcd4b614624f3810b2bf970c8b06615a Mon Sep 17 00:00:00 2001 From: dep5 Date: Thu, 22 Apr 2021 21:19:15 +0900 Subject: [PATCH] =?UTF-8?q?PatchUnicode-1046=20v0.3=20=E3=82=B3=E3=83=B3?= =?UTF-8?q?=E3=83=9C=E3=83=9C=E3=83=83=E3=82=AF=E3=82=B9=E3=81=AE=E5=B1=A5?= =?UTF-8?q?=E6=AD=B4=E5=89=8A=E9=99=A4=E3=81=AB=E5=AF=BE=E5=BF=9C=20#1255?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura_core/dlg/CDialog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sakura_core/dlg/CDialog.cpp b/sakura_core/dlg/CDialog.cpp index c314b2254b..da139bb2d8 100644 --- a/sakura_core/dlg/CDialog.cpp +++ b/sakura_core/dlg/CDialog.cpp @@ -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); }