mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
dolphintabwidget.cpp piority of boolean operators
Fix PVS-Studio issue "warning: V648 Priority of the '&&' operation is higher than that of the '||' operation.". Fix clangd issue.
This commit is contained in:
parent
b1eb12e03a
commit
35244bec75
|
@ -490,13 +490,13 @@ QPair<int, bool> DolphinTabWidget::indexByUrl(const QUrl& url, ChildUrlBehavior
|
|||
do {
|
||||
const auto tabPage = tabPageAt(i);
|
||||
if (tabPage->primaryViewContainer()->url() == url ||
|
||||
childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->primaryViewContainer()->url().isParentOf(url)) {
|
||||
(childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->primaryViewContainer()->url().isParentOf(url))) {
|
||||
return qMakePair(i, true);
|
||||
}
|
||||
|
||||
if (tabPage->splitViewEnabled() &&
|
||||
(url == tabPage->secondaryViewContainer()->url() ||
|
||||
childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->secondaryViewContainer()->url().isParentOf(url))) {
|
||||
(childUrlBehavior == ReturnIndexForOpenedParentAlso && tabPage->secondaryViewContainer()->url().isParentOf(url)))) {
|
||||
return qMakePair(i, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue