X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/9340a52cf8b310545fdb06f1f5aeec0f6a32d539..66ad27aba14cdfea777b9ebe1beb161f80f26463:/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); }