[simple-scan/gnome-3-14: 5/7] Fix logic for adding blank page on page removal. This was a regression from the page re-ordering cha
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan/gnome-3-14: 5/7] Fix logic for adding blank page on page removal. This was a regression from the page re-ordering cha
- Date: Thu, 27 Apr 2017 09:14:02 +0000 (UTC)
commit 73c2c488d48a725f325a7aee873f904d05f52d7e
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Apr 14 11:33:19 2015 +1200
Fix logic for adding blank page on page removal. This was a regression from the page re-ordering changes
in revision 701
src/ui.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ui.vala b/src/ui.vala
index 3411670..22a99dc 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -1610,7 +1610,7 @@ public class UserInterface : Gtk.ApplicationWindow
page.scan_direction_changed.disconnect (page_scan_direction_changed_cb);
/* If this is the last page add a new blank one */
- if (book.n_pages == 1)
+ if (book.n_pages == 0)
add_default_page ();
update_page_menu ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]