{
response = gtk_dialog_run(GTK_DIALOG(dlg));
- if(GTK_RESPONSE_REJECT == response)
+ if( GTK_RESPONSE_REJECT == response ||
+ GTK_RESPONSE_DELETE_EVENT == response ||
+ GTK_RESPONSE_CANCEL == response)
{
r = 0;
c = 0;
item->player = gtk_combo_box_get_active(GTK_COMBO_BOX(combo));
/* check if all data entered correctly */
- if(item->dur && item->id[0])
+ if(item->id[0])
c = 0;
};
};