Commit 971176ce authored by Victor Ananjevsky's avatar Victor Ananjevsky

shows overwrite confirmation dialog for save file dialog only on even button codes

parent a0d95487
...@@ -162,7 +162,7 @@ text_size_allocate_cb (GtkWidget * w, GtkAllocation * al, gpointer data) ...@@ -162,7 +162,7 @@ text_size_allocate_cb (GtkWidget * w, GtkAllocation * al, gpointer data)
void void
yad_exit (gint id) yad_exit (gint id)
{ {
if (options.mode == YAD_MODE_FILE) if ((options.mode == YAD_MODE_FILE) && !(id & 1))
{ {
/* show custom confirmation dialog */ /* show custom confirmation dialog */
if (!file_confirm_overwrite (dialog)) if (!file_confirm_overwrite (dialog))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment