[geany/geany] 383024: Confirm info-bar reload when document has modifications

Nick Treleaven git-noreply at xxxxx
Wed Sep 24 11:21:30 UTC 2014


Branch:      refs/heads/master
Author:      Nick Treleaven <nick.treleaven at btinternet.com>
Committer:   Nick Treleaven <nick.treleaven at btinternet.com>
Date:        Wed, 24 Sep 2014 11:21:30 UTC
Commit:      3830240cb8a7b0a7699125b1870d5169b2dcdf70
             https://github.com/geany/geany/commit/3830240cb8a7b0a7699125b1870d5169b2dcdf70

Log Message:
-----------
Confirm info-bar reload when document has modifications


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

Modified: src/document.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -1409,7 +1409,7 @@ void document_open_files(const GSList *filenames, gboolean readonly, GeanyFilety
 
 
 /**
- *  Reloads the document with the specified file encoding
+ *  Reloads the document with the specified file encoding.
  *  @a forced_enc or @c NULL to auto-detect the file encoding.
  *
  *  @param doc The document to reload.
@@ -3270,7 +3270,7 @@ static void on_monitor_reload_file_response(GtkWidget *bar, gint response_id, Ge
 	doc->priv->info_bars[MSG_TYPE_RELOAD] = NULL;
 
 	if (response_id == RESPONSE_DOCUMENT_RELOAD)
-		document_reload_file(doc, doc->encoding);
+		document_reload_prompt(doc, doc->encoding);
 	else if (response_id == RESPONSE_DOCUMENT_SAVE)
 		document_save_file(doc, TRUE);
 	else if (response_id == GTK_RESPONSE_CANCEL)



--------------
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