fix bug when saving tour

This commit is contained in:
Chris Cromer 2019-01-20 03:19:08 -03:00
parent 9d69811598
commit 7e7b09cef1
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ namespace Sernatur {
try {
List<Tour> 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,