リビジョン | ce330dbce6b4a56d35959a2725306b9d0f6f8b02 (tree) |
---|---|
日時 | 2022-06-21 22:19:01 |
作者 | Takashi Sawanaka <sdottaka@user...> |
コミッター | Takashi Sawanaka |
Disable the Replace button if text is selected, as it cannot solve the strange behavior such as crashes when the Replace button is pressed while text is selected.
@@ -525,6 +525,8 @@ UpdateControls() | ||
525 | 525 | { |
526 | 526 | for (auto id: {IDC_EDIT_FINDPREV, IDC_EDIT_SKIP, IDC_EDIT_REPLACE, IDC_EDIT_REPLACE_ALL}) |
527 | 527 | GetDlgItem(id)->EnableWindow( !m_sText.IsEmpty() ); |
528 | + if (m_nScope == 0) | |
529 | + GetDlgItem(IDC_EDIT_REPLACE)->EnableWindow(false); | |
528 | 530 | |
529 | 531 | UpdateRegExp(); |
530 | 532 | } |