┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorAntonio Prcela <[email protected]>2019-08-13 23:22:05 +0200
committerElvis Angelaccio <[email protected]>2019-08-13 23:22:06 +0200
commit0ab27790588548d5c8cf114613f768f0514f92d6 (patch)
treeaed335d0c5e06d801a899960f8dd141117538cd1 /src/views
parentc18f5fde4b9be141b6de9325f92b03f774c2868b (diff)
Remove redundant code
Summary: Remove redundant negation and the AND check. OR is enough. Reviewers: meven, elvisangelaccio Reviewed By: meven, elvisangelaccio Subscribers: elvisangelaccio, meven, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D23129
Diffstat (limited to 'src/views')
-rw-r--r--src/views/dolphinviewactionhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/dolphinviewactionhandler.cpp b/src/views/dolphinviewactionhandler.cpp
index 18b1c2d97..27321f63a 100644
--- a/src/views/dolphinviewactionhandler.cpp
+++ b/src/views/dolphinviewactionhandler.cpp
@@ -280,7 +280,7 @@ void DolphinViewActionHandler::createActions()
QActionGroup* DolphinViewActionHandler::createFileItemRolesActionGroup(const QString& groupPrefix)
{
const bool isSortGroup = (groupPrefix == QLatin1String("sort_by_"));
- Q_ASSERT(isSortGroup || (!isSortGroup && groupPrefix == QLatin1String("show_")));
+ Q_ASSERT(isSortGroup || groupPrefix == QLatin1String("show_"));
QActionGroup* rolesActionGroup = new QActionGroup(m_actionCollection);
rolesActionGroup->setExclusive(isSortGroup);