From 60c5e3509ce7c34d015956a562a98cce45e82ecb Mon Sep 17 00:00:00 2001 From: Maksym Veremeyenko Date: Tue, 21 Jun 2011 18:53:23 +0300 Subject: [PATCH] fix closing dialog --- src/ui.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/ui.c b/src/ui.c index 2c6b072..bea64e6 100644 --- 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; -- 1.7.4.4