diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-05-20 14:43:42 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-05-20 14:43:42 +0200 |
commit | a411067829dfcdf7081399bfb320218d0bd0bc32 (patch) | |
tree | 6eb221aafd0d2360277b8760a9848170784e2121 /editor | |
parent | 6110bdee138febf3b04b47bc15b834bda7b99d52 (diff) |
Allow empty replacement texts in the Find in Files replace dialog
This closes #29026.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/find_in_files.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/find_in_files.cpp b/editor/find_in_files.cpp index 4dbba952bf..11af9fc2eb 100644 --- a/editor/find_in_files.cpp +++ b/editor/find_in_files.cpp @@ -751,7 +751,6 @@ void FindInFilesPanel::_on_replace_text_changed(String text) { void FindInFilesPanel::_on_replace_all_clicked() { String replace_text = get_replace_text(); - ERR_FAIL_COND(replace_text.empty()); PoolStringArray modified_files; @@ -887,7 +886,7 @@ String FindInFilesPanel::get_replace_text() { void FindInFilesPanel::update_replace_buttons() { String text = get_replace_text(); - bool disabled = text.empty() || _finder->is_searching(); + bool disabled = _finder->is_searching(); _replace_all_button->set_disabled(disabled); } |