[simple-scan/gnome-3-12: 9/13] Fix save button being inactive on pages restored after a crash



commit 5b5ab8f1fbb0a75213b9c6e3cd716f1175b635c5
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Mar 25 12:36:04 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 8021339..7b50d19 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -191,6 +191,7 @@ public class UserInterface
         book = new Book ();
         book.page_removed.connect (page_removed_cb);
         book.page_added.connect (page_added_cb);
+        book.needs_saving_changed.connect (needs_saving_cb);
 
         load ();
 
@@ -205,7 +206,6 @@ public class UserInterface
         }
         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]