From 8de73f4ec6cb2a7bdefeba5b04c158730a7b153d Mon Sep 17 00:00:00 2001 From: ssvine <79405160+ssvine@users.noreply.github.com> Date: Mon, 27 May 2024 23:06:00 +0300 Subject: [PATCH] Fix updating session on import --- src/core/SessionData.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/SessionData.cpp b/src/core/SessionData.cpp index fabfdb519..a265394a8 100644 --- a/src/core/SessionData.cpp +++ b/src/core/SessionData.cpp @@ -5409,6 +5409,11 @@ void TStoredSessionList::Load(THierarchicalStorage * Storage, SessionData->Load(Storage, PuttyImport); // gh-364 Add(SessionData); } + else if (AsModified) + { + // import existing session: just update + SessionData->Load(Storage, PuttyImport); + } Loaded->Add(SessionData); // line moved up, gh-364: SessionData->Load(Storage, PuttyImport); if (AsModified)