diff options
| author | Antonio Prcela <[email protected]> | 2019-08-13 23:22:05 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-08-13 23:22:06 +0200 |
| commit | 0ab27790588548d5c8cf114613f768f0514f92d6 (patch) | |
| tree | aed335d0c5e06d801a899960f8dd141117538cd1 | |
| parent | c18f5fde4b9be141b6de9325f92b03f774c2868b (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
| -rw-r--r-- | src/views/dolphinviewactionhandler.cpp | 2 |
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); |
