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.
This commit is contained in:
parent
b487d8dea3
commit
1dc96f1e50
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user