Skip to content

Fix focusing of new and duplicated sessions #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

ssvine
Copy link
Contributor

@ssvine ssvine commented Sep 5, 2024

In rather old versions of the plugin the newly created session (Shift-F4) or the duplicated one (Shift-F5) received focus. This is not true with recent versions.

The root cause of the problem is TStoredSessionList::NewSession function, that returns nullptr when the new session is created. This PR fixes it.

Copy link

sonarqubecloud bot commented Sep 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ A)
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@michaellukashov michaellukashov merged commit 7b91920 into michaellukashov:main Sep 7, 2024
1 of 2 checks passed
@ssvine ssvine deleted the fix-new-session branch September 7, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants