normalize playlist item agains library
[melted_gui] / src / ui.c
index 2c6b072..c8912db 100644 (file)
--- a/src/ui.c
+++ b/src/ui.c
@@ -636,7 +636,9 @@ int ui_playlist_item_dialog(omnplay_instance_t* app, playlist_item_t* item)
     {
         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;
@@ -653,7 +655,7 @@ int ui_playlist_item_dialog(omnplay_instance_t* app, playlist_item_t* item)
             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;
         };
     };