[sound-juicer] Require explicit conformation for quitting while extracting



commit 9918ba112adfa784f072c5207d9f1e7ca51fd237
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Tue Aug 12 11:57:37 2014 +0100

    Require explicit conformation for quitting while extracting
    
    If the user pressed escape to dismiss the dialog then sound-juicer
    closed while extracting. Instead continue extracting if the user
    dismisses the dialog with escape.

 src/sj-main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/sj-main.c b/src/sj-main.c
index 842adf5..47dfa51 100644
--- a/src/sj-main.c
+++ b/src/sj-main.c
@@ -1471,7 +1471,7 @@ static void profile_changed_cb (GSettings *settings, gchar *key, gpointer user_d
     gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Change Profile"), GTK_RESPONSE_ACCEPT);
     gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
     response = gtk_dialog_run (GTK_DIALOG (dialog));
-    if (response == GTK_RESPONSE_ACCEPT) {
+    if (response != GTK_RESPONSE_REJECT) {
       gtk_widget_destroy (dialog);
       show_preferences_dialog ();
     } else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]