]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Remove redundant code
authorAntonio Prcela <antonio.prcela@gmail.com>
Tue, 13 Aug 2019 21:22:05 +0000 (23:22 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Tue, 13 Aug 2019 21:22:06 +0000 (23:22 +0200)
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

src/views/dolphinviewactionhandler.cpp

index 18b1c2d97096bc960057fe6ce47ccda1907a1257..27321f63a6b2ede7d578272aeee194674c4605a3 100644 (file)
@@ -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);