[simple-scan/gnome-3-12: 8/13] 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-12: 8/13] Fix error where document was discarded if warning dialog was closed
- Date: Thu, 27 Apr 2017 09:14:48 +0000 (UTC)
commit 57e00f4c6c3d2b90db4848590e8f11b9b7cec56c
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Feb 16 14:43:57 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 31ec151..8021339 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -608,11 +608,10 @@ public class UserInterface
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]