Commit 0c8183af authored by Felix Ernst's avatar 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
......@@ -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> alreadyOpenDirectory = viewOpenAtDirectory(primaryUrl);
const std::optional<ViewIndex> viewIndexAtDirectory = viewOpenAtDirectory(primaryUrl);
// When the user asks for a URL that's already open,
// activate it instead of opening a new tab
if (alreadyOpenDirectory.has_value()) {
if (viewIndexAtDirectory.has_value()) {
somethingWasAlreadyOpen = true;
} else if (splitView && (it != dirs.constEnd())) {
const QUrl& secondaryUrl = *(it++);
if (somethingWasAlreadyOpen) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment