[simple-scan/gnome-3-14: 3/7] Fix error where document was discarded if warning dialog was closed
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan/gnome-3-14: 3/7] Fix error where document was discarded if warning dialog was closed
- Date: Thu, 27 Apr 2017 09:13:52 +0000 (UTC)
commit 557b27eb307caefa8eb7e386838d889f3aa82338
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Feb 16 14:40:56 2015 +1300
Fix error where document was discarded if warning dialog was closed
src/ui.vala | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/ui.vala b/src/ui.vala
index 2117a9a..e8eeeb4 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -682,11 +682,10 @@ public class UserInterface : Gtk.ApplicationWindow
return true;
else
return false;
- case Gtk.ResponseType.CANCEL:
- return false;
case Gtk.ResponseType.NO:
- default:
return true;
+ default:
+ return false;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]