[geany/geany] 53101d: project: Remove unecessary calls after loading project files

Thomas Martitz git-noreply at xxxxx
Sat Nov 8 16:59:05 UTC 2014


Branch:      refs/heads/master
Author:      Thomas Martitz <kugel at rockbox.org>
Committer:   Thomas Martitz <kugel at rockbox.org>
Date:        Sat, 08 Nov 2014 16:59:05 UTC
Commit:      53101dd5fa3c622b60be2e99163f0469246e0bc9
             https://github.com/geany/geany/commit/53101dd5fa3c622b60be2e99163f0469246e0bc9

Log Message:
-----------
project: Remove unecessary calls after loading project files

document_new_file_if_non_open() and ui_focus_current_document() only make sense
when files where actually opened, but the preceeding
configuration_load_session_files() only loads the file names into the global
session_files variable, from which the files are actually opened by a later
call to configuration_open_files(). These two calls should be done after that
one and the callers generally do this already.


Modified Paths:
--------------
    src/project.c

Modified: src/project.c
2 lines changed, 0 insertions(+), 2 deletions(-)
===================================================================
@@ -1070,8 +1070,6 @@ static gboolean load_config(const gchar *filename)
 		document_close_all();
 		/* read session files so they can be opened with configuration_open_files() */
 		configuration_load_session_files(config, FALSE);
-		document_new_file_if_non_open();
-		ui_focus_current_document();
 	}
 	g_signal_emit_by_name(geany_object, "project-open", config);
 	g_key_file_free(config);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list