瀏覽代碼

After opening a local-local-only workspace from a Login dialog, the dialog was reopened

Source commit: be1c2548b6301bca2144a9c983e666121fba23a1
Martin Prikryl 4 年之前
父節點
當前提交
3dcc43dd61
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      source/windows/TerminalManager.cpp

+ 3 - 3
source/windows/TerminalManager.cpp

@@ -1604,7 +1604,7 @@ void __fastcall TTerminalManager::NewSession(
         TAutoNestingCounter UpdatingCounter(FUpdating); // prevent tab flicker
         FreeAll();
       }
-      TManagedTerminal * ANewTerminal = NewTerminals(DataList.get());
+      TManagedTerminal * ANewSession = NewTerminals(DataList.get());
       bool AdHoc = (DataList->Count == 1) && (StoredSessions->FindSame(reinterpret_cast<TSessionData *>(DataList->Items[0])) == NULL);
       bool CanRetry = SessionUrl.IsEmpty() && AdHoc;
       bool ShowLoginWhenNoSession = WinConfiguration->ShowLoginWhenNoSession;
@@ -1615,7 +1615,7 @@ void __fastcall TTerminalManager::NewSession(
       }
       try
       {
-        ActiveSession = ANewTerminal;
+        ActiveSession = ANewSession;
       }
       __finally
       {
@@ -1624,7 +1624,7 @@ void __fastcall TTerminalManager::NewSession(
           WinConfiguration->ShowLoginWhenNoSession = ShowLoginWhenNoSession;
         }
       }
-      Retry = CanRetry && (ActiveTerminal != ANewTerminal);
+      Retry = CanRetry && (ActiveSession != ANewSession);
     }
   }
   while (Retry);