From 99614d1b27998b88c0ae948a160ea68560707b09 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 12 Jul 2023 13:37:33 +0200 Subject: [PATCH] Use QString::isEmpty here --- src/models/webshortcutmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/webshortcutmodel.cpp b/src/models/webshortcutmodel.cpp index 606f0f833..ce9391a64 100644 --- a/src/models/webshortcutmodel.cpp +++ b/src/models/webshortcutmodel.cpp @@ -84,7 +84,7 @@ int KWebShortcutModel::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent); #ifdef HAVE_KIO - if (d->selectedText.count() > 0) { + if (!d->selectedText.isEmpty()) { return d->searchProviders.count(); } #endif