summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-09-18 14:34:39 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-09-18 14:34:39 +0000
commit2d983ff84b0af220fd0ae826aa65a7f04221887c (patch)
treef140cfb0060a06557593da4056f263a50147fa33
parentb690498435e18f0fded6570e67b24fe4676ff4a5 (diff)
downloadpcsxr-2d983ff84b0af220fd0ae826aa65a7f04221887c.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@29971 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--ChangeLog5
-rw-r--r--win32/gui/CheatDlg.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 16e03376..b8be31f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+September 18, 2009 Wei Mingzhi <weimingzhi@gmail.com>
+
+ * win32/gui/CheatDlg.c: Disable "Search Type" dialog box if search results
+ already exist.
+
September 16, 2009 Wei Mingzhi <weimingzhi@gmail.com>
* po/pt_BR.po, po/pt_BR.gmo: Added Portuguese (Brazil) translation. Thanks
diff --git a/win32/gui/CheatDlg.c b/win32/gui/CheatDlg.c
index 05b4285f..7fb2500e 100644
--- a/win32/gui/CheatDlg.c
+++ b/win32/gui/CheatDlg.c
@@ -411,6 +411,11 @@ static void UpdateCheatSearchDlg(HWND hW) {
SendMessage(GetDlgItem(hW, IDC_SEARCHFOR), CB_ADDSTRING, 0, (LPARAM)_("Decreased"));
SendMessage(GetDlgItem(hW, IDC_SEARCHFOR), CB_ADDSTRING, 0, (LPARAM)_("Different"));
SendMessage(GetDlgItem(hW, IDC_SEARCHFOR), CB_ADDSTRING, 0, (LPARAM)_("No Change"));
+
+ ComboBox_Enable(GetDlgItem(hW, IDC_DATATYPE), FALSE);
+ }
+ else {
+ ComboBox_Enable(GetDlgItem(hW, IDC_DATATYPE), TRUE);
}
SendMessage(GetDlgItem(hW, IDC_SEARCHFOR), CB_SETCURSEL, (WPARAM)current_search, 0);