Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
0c8183af
Commit
0c8183af
authored
Oct 11, 2022
by
Felix Ernst
🇺🇦
Browse files
Rename variable
Based on code review feedback by Andrey Butirsky.
parent
37a98417
Pipeline
#246127
passed with stage
in 6 minutes and 40 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/dolphintabwidget.cpp
View file @
0c8183af
...
...
@@ -204,13 +204,13 @@ void DolphinTabWidget::openDirectories(const QList<QUrl>& dirs, bool splitView)
QList
<
QUrl
>::
const_iterator
it
=
dirs
.
constBegin
();
while
(
it
!=
dirs
.
constEnd
())
{
const
QUrl
&
primaryUrl
=
*
(
it
++
);
const
std
::
optional
<
ViewIndex
>
alreadyOpen
Directory
=
viewOpenAtDirectory
(
primaryUrl
);
const
std
::
optional
<
ViewIndex
>
viewIndexAt
Directory
=
viewOpenAtDirectory
(
primaryUrl
);
// When the user asks for a URL that's already open,
// activate it instead of opening a new tab
if
(
alreadyOpen
Directory
.
has_value
())
{
if
(
viewIndexAt
Directory
.
has_value
())
{
somethingWasAlreadyOpen
=
true
;
activateViewContainerAt
(
alreadyOpen
Directory
.
value
());
activateViewContainerAt
(
viewIndexAt
Directory
.
value
());
}
else
if
(
splitView
&&
(
it
!=
dirs
.
constEnd
()))
{
const
QUrl
&
secondaryUrl
=
*
(
it
++
);
if
(
somethingWasAlreadyOpen
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment