Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: GitHub noreply@github.com Date: Thu, 24 Oct 2024 15:47:02 UTC Commit: 7e6b83594847b32df4b7cf15bd5cd12643925eec https://github.com/geany/geany/commit/7e6b83594847b32df4b7cf15bd5cd12643925e...
Log Message: ----------- Merge pull request #3898 from techee/session_fix2
Fix a problem when multiple project opens clear the default session
Modified Paths: -------------- src/project.c
Modified: src/project.c 8 lines changed, 7 insertions(+), 1 deletions(-) =================================================================== @@ -1118,7 +1118,13 @@ static gboolean load_config(const gchar *filename) /* save current (non-project) session (it could have been changed since program startup) */ if (!main_status.opening_session_files) { - configuration_save_default_session(); + /* Opening another project while some project is already opene causes + * that upon closing the first project, empty session is saved here. + * The check below prevents that but has a side-effect that when + * save_config_on_file_change=FALSE, the session with all closed files + * isn't saved when opening a project. */ + if (have_session_docs()) + configuration_save_default_session(); /* now close all open files */ document_close_all(); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).