Skip to content

Commit

Permalink
fix: can't replace all empty
Browse files Browse the repository at this point in the history
Change-Id: I77665a876007675a5fbc5ff867249be3b99297aa
  • Loading branch information
rekols committed Sep 19, 2018
1 parent 9255975 commit 9b83f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/src/texteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ void TextEditor::updateFont()

void TextEditor::replaceAll(const QString &replaceText, const QString &withText)
{
if (replaceText.isEmpty() || withText.isEmpty()) {
if (replaceText.isEmpty()) {
return;
}

Expand Down

0 comments on commit 9b83f15

Please sign in to comment.