]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use isEmpty() here
authorLaurent Montel <montel@kde.org>
Fri, 30 Nov 2018 05:57:48 +0000 (06:57 +0100)
committerLaurent Montel <montel@kde.org>
Fri, 30 Nov 2018 05:58:22 +0000 (06:58 +0100)
src/panels/information/informationpanel.cpp

index 042849b2511baa90dae257cdea8e782cc830ab61..1ec2696e31a2d44761b588c4f396d6ed8a660dac 100644 (file)
@@ -91,7 +91,7 @@ void InformationPanel::requestDelayedItemInfo(const KFileItem& item)
     if (item.isNull()) {
         // The cursor is above the viewport. If files are selected,
         // show information regarding the selection.
-        if (m_selection.size() > 0) {
+        if (!m_selection.isEmpty()) {
             m_fileItem = KFileItem();
             m_infoTimer->start();
         }