[gnome-sudoku] Revert "print-dialog: workaround double emission of response signal"



commit d0a4a9d5e4985f5f5276eafe53c8d50191986ed0
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Feb 21 20:26:58 2015 -0600

    Revert "print-dialog: workaround double emission of response signal"
    
    This reverts commit d6a7ddb4362b627dbf95d66aad69d1d967cb1869.
    
    Mysteriously fixed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737895

 src/print-dialog.vala |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/print-dialog.vala b/src/print-dialog.vala
index 19ee92b..93704c4 100644
--- a/src/print-dialog.vala
+++ b/src/print-dialog.vala
@@ -86,13 +86,8 @@ public class PrintDialog : Gtk.Dialog
         action.value_changed.connect (() => settings.set_int (key_name, (int) action.get_value ()));
     }
 
-// FIXME why is response emitted twice when the user presses Print?
-private bool once = false;
     public override void response (int response)
     {
-if (once) return;
-once = true;
-
         if (response != Gtk.ResponseType.OK)
         {
             finished ();


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