Skip to content

Commit

Permalink
Merge remote-tracking branch 'ssvine/fix-session-import'
Browse files Browse the repository at this point in the history
* ssvine/fix-session-import:
  Fix updating session on import
  • Loading branch information
michaellukashov committed May 28, 2024
2 parents f4391d2 + 8de73f4 commit ee0dcd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/SessionData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee0dcd3

Please sign in to comment.