[geany/geany] f40569: Opening recent projects: Don't ask whether to close current project
Nick Treleaven
git-noreply at xxxxx
Sun Sep 29 16:26:43 UTC 2019
Branch: refs/heads/master
Author: Nick Treleaven <n at trelsoft.com>
Committer: Nick Treleaven <n at trelsoft.com>
Date: Sun, 29 Sep 2019 16:26:43 UTC
Commit: f40569d1c327af162726dbab14a78fd83ca5e0b8
https://github.com/geany/geany/commit/f40569d1c327af162726dbab14a78fd83ca5e0b8
Log Message:
-----------
Opening recent projects: Don't ask whether to close current project
Unlikely to be done accidentally.
Modified Paths:
--------------
src/ui_utils.c
Modified: src/ui_utils.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -1191,7 +1191,8 @@ static void recent_project_activate_cb(GtkMenuItem *menuitem, G_GNUC_UNUSED gpoi
gchar *utf8_filename = ui_menu_item_get_text(menuitem);
gchar *locale_filename = utils_get_locale_from_utf8(utf8_filename);
- if (project_ask_close() && project_load_file_with_session(locale_filename))
+ if (app->project && !project_close(FALSE)) {}
+ else if (project_load_file_with_session(locale_filename))
recent_file_loaded(utf8_filename, recent_get_recent_projects());
g_free(locale_filename);
--------------
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