Use QString::isEmpty here

This commit is contained in:
Laurent Montel
2023-07-12 13:37:33 +02:00
parent e1e57ef27a
commit 99614d1b27

View File

@@ -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