From da83e8cbdb0354f359bdf08d610693665989c9f1 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sat, 14 Sep 2019 09:40:09 +0200 Subject: Use directly "isEmpty()" --- src/dolphinmainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index ec42d33f7..32ac0e0fd 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -359,7 +359,7 @@ void DolphinMainWindow::addToPlaces() QString name; // If nothing is selected, act on the current dir - if (m_activeViewContainer->view()->selectedItems().count() == 0) { + if (m_activeViewContainer->view()->selectedItems().isEmpty()) { url = m_activeViewContainer->url(); name = m_activeViewContainer->placesText(); } else { -- cgit v1.3