]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Rename variable
authorFelix Ernst <fe.a.ernst@gmail.com>
Tue, 11 Oct 2022 14:25:39 +0000 (16:25 +0200)
committerFelix Ernst <fe.a.ernst@gmail.com>
Tue, 11 Oct 2022 14:25:39 +0000 (16:25 +0200)
Based on code review feedback by Andrey Butirsky.

src/dolphintabwidget.cpp

index 04653f33c84c72441f44a3caa2075b203c936c58..13619a5f9984530aa791c192ff286d7e7ae0f569 100644 (file)
@@ -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;
-            activateViewContainerAt(alreadyOpenDirectory.value());
+            activateViewContainerAt(viewIndexAtDirectory.value());
         } else if (splitView && (it != dirs.constEnd())) {
             const QUrl& secondaryUrl = *(it++);
             if (somethingWasAlreadyOpen) {