Skip to content

Commit

Permalink
fix: allow to replace by empty string (=> remove text)
Browse files Browse the repository at this point in the history
  • Loading branch information
Montel committed Jul 11, 2024
1 parent ec2265b commit ed03e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/findwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void FindWidget::replace(bool onlyOne)
{
const QString &before = findString();
const QString &after = ui->replaceEdit->text();
if (before.isEmpty() || after.isEmpty())
if (before.isEmpty())
return;

auto document = Core::Project::instance()->currentDocument();
Expand Down

0 comments on commit ed03e9b

Please sign in to comment.