Branch: refs/heads/master Author: Thomas Martitz kugel@rockbox.org Committer: Thomas Martitz kugel@rockbox.org Date: Sat, 24 May 2014 13:05:15 UTC Commit: 1dc96f1e50fad6d68ef1d27aa44ef25a9652db38 https://github.com/geany/geany/commit/1dc96f1e50fad6d68ef1d27aa44ef25a9652db...
Log Message: ----------- infobars: Cancel "reload file" dialog when spawning the "resave file" one.
When the file was deleted from disk the message that the file is newer on disk has become out of date and irrelevent.
Modified Paths: -------------- src/document.c
Modified: src/document.c 3 lines changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -3206,6 +3206,9 @@ static void monitor_resave_missing_file(GeanyDocument *doc) if (doc->priv->info_bars[MSG_TYPE_RESAVE] == NULL) { GtkWidget *bar; + bar = doc->priv->info_bars[MSG_TYPE_RELOAD]; + if (bar != NULL) /* the "file on disk is newer" warning is now moot */ + gtk_info_bar_response(GTK_INFO_BAR(bar), GTK_RESPONSE_CANCEL);
bar = document_show_message(doc, GTK_MESSAGE_WARNING, on_monitor_resave_missing_file_response,
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).