summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-20 18:16:14 +0200
committerGitHub <noreply@github.com>2019-05-20 18:16:14 +0200
commitaf731f8d0f8a901999dc5db53e63a45f83768c73 (patch)
tree27e0134bcf362b6b5fd6c3d1cddffb86c4b7cded /editor
parent5cc1c7d642044637e011ba221b2a52bf45c5a531 (diff)
parenta411067829dfcdf7081399bfb320218d0bd0bc32 (diff)
Merge pull request #29029 from Calinou/find-in-files-allow-empty-replace
Allow empty replacement texts in the Find in Files replace dialog
Diffstat (limited to 'editor')
-rw-r--r--editor/find_in_files.cpp3
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);
}