diff options
| author | Peter Penz <[email protected]> | 2009-07-23 06:14:57 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-07-23 06:14:57 +0000 |
| commit | fddd17030cf1da66415aad51e31575d2a1e2dda0 (patch) | |
| tree | b821504b6bb75533a0b94c9b2744256914245889 /src/dolphincontextmenu.cpp | |
| parent | 9340a52cf8b310545fdb06f1f5aeec0f6a32d539 (diff) | |
replace list.count() > 0 by !list.isEmpty()
svn path=/trunk/KDE/kdebase/apps/; revision=1001386
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<QAction*> revControlActions = view->revisionControlActions(m_selectedItems); - if (revControlActions.count() > 0) { + if (!revControlActions.isEmpty()) { foreach (QAction* action, revControlActions) { menu->addAction(action); } |
