Skip to content

Commit

Permalink
Bug 2228: Failure when reconnect on edited/opened file save is canceled
Browse files Browse the repository at this point in the history
https://winscp.net/tracker/2228

Source commit: 2a1d1f1e033a9ccf9c7e66292d613982c0aca00c
  • Loading branch information
martinprikryl committed Oct 4, 2023
1 parent 5939365 commit 9497660
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions source/forms/CustomScpExplorer.cpp
Expand Up @@ -4007,8 +4007,15 @@ void __fastcall TCustomScpExplorerForm::ExecutedFileChanged(
{
Manager->ActiveSession = Terminal;
ReconnectSession();
DebugAssert(Terminal == Data->Terminal);
Data->Queue = Manager->FindQueueForTerminal(Terminal);
// Was it reconnected? (if not, Data->Terminal should be nulled now)
if (IsActiveTerminal(Data->Terminal) && (Terminal == Data->Terminal))
{
Data->Queue = Manager->FindQueueForTerminal(Terminal);
}
else
{
Abort();
}
}
else
{
Expand Down

0 comments on commit 9497660

Please sign in to comment.