From fddd17030cf1da66415aad51e31575d2a1e2dda0 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 23 Jul 2009 06:14:57 +0000 Subject: replace list.count() > 0 by !list.isEmpty() svn path=/trunk/KDE/kdebase/apps/; revision=1001386 --- src/dolphincontextmenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dolphincontextmenu.cpp') diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index cd3195e9a..6d5e24dc5 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -88,7 +88,7 @@ void DolphinContextMenu::open() m_context |= TrashContext; } - if (!m_fileInfo.isNull() && (m_selectedItems.count() > 0)) { + if (!m_fileInfo.isNull() && !m_selectedItems.isEmpty()) { m_context |= ItemContext; // TODO: handle other use cases like devices + desktop files } @@ -394,7 +394,7 @@ void DolphinContextMenu::addRevisionControlActions(KMenu* menu) { const DolphinView* view = m_mainWindow->activeViewContainer()->view(); const QList revControlActions = view->revisionControlActions(m_selectedItems); - if (revControlActions.count() > 0) { + if (!revControlActions.isEmpty()) { foreach (QAction* action, revControlActions) { menu->addAction(action); } -- cgit v1.3