summaryrefslogtreecommitdiffstats
path: root/examples/uitools/textfinder/textfinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/uitools/textfinder/textfinder.cpp')
-rw-r--r--examples/uitools/textfinder/textfinder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/uitools/textfinder/textfinder.cpp b/examples/uitools/textfinder/textfinder.cpp
index 855f11f..1b7c14b 100644
--- a/examples/uitools/textfinder/textfinder.cpp
+++ b/examples/uitools/textfinder/textfinder.cpp
@@ -116,7 +116,7 @@ void TextFinder::on_findButton_clicked()
if (isFirstTime == false)
document->undo();
- if (searchString == "") {
+ if (searchString.isEmpty()) {
QMessageBox::information(this, tr("Empty Search Field"),
"The search field is empty. Please enter a word and click Find.");
} else {