[simple-scan/gnome-3-14: 4/7] Fix save button being inactive on pages restored after a crash



commit 222b4e717fd480b2424264e10a5d01a927e60fc7
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Mar 25 12:34:28 2015 +1300

    Fix save button being inactive on pages restored after a crash

 src/ui.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ui.vala b/src/ui.vala
index e8eeeb4..3411670 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -264,6 +264,7 @@ public class UserInterface : Gtk.ApplicationWindow
         book.page_added.connect (page_added_cb);
         book.reordered.connect (reordered_cb);
         book.page_removed.connect (page_removed_cb);
+        book.needs_saving_changed.connect (needs_saving_cb);
 
         load ();
 
@@ -278,7 +279,6 @@ public class UserInterface : Gtk.ApplicationWindow
         }
         else
             book_view.selected_page = book.get_page (0);
-        book.needs_saving_changed.connect (needs_saving_cb);
     }
 
     ~UserInterface ()


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