From 7e7b09cef19c1e3b141a7d4f442aac307a666100 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Sun, 20 Jan 2019 03:19:08 -0300 Subject: [PATCH] fix bug when saving tour --- src/tour_editor.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tour_editor.vala b/src/tour_editor.vala index 6ff8fcf..b682e33 100644 --- a/src/tour_editor.vala +++ b/src/tour_editor.vala @@ -223,7 +223,7 @@ namespace Sernatur { try { List list = Tour.get_all_tours (conn); list.foreach ((entry) => { - if (tour.nombre_tour.down () == entry.nombre_tour.down ()) { + if (tour.nombre_tour.down () == entry.nombre_tour.down () && tour.id_tour != entry.id_tour) { var msg = new Gtk.MessageDialog (this, Gtk.DialogFlags.MODAL, Gtk.MessageType.ERROR,