From d4244fed483881a37e36b8b01aed02a940f2569a Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 7 Feb 2018 17:25:58 -0300 Subject: [PATCH] Add options to avoid showing dialogs saving files (#917) --- data/pref.xml | 4 ++++ data/strings/en.ini | 2 ++ data/widgets/options.xml | 2 ++ src/app/CMakeLists.txt | 3 ++- src/app/commands/cmd_options.cpp | 6 ++++++ src/app/file/file.cpp | 13 ++++++++---- src/app/ui/optional_alert.cpp | 35 ++++++++++++++++++++++++++++++++ src/app/ui/optional_alert.h | 26 ++++++++++++++++++++++++ src/ui/alert.cpp | 10 ++++++++- src/ui/alert.h | 5 ++++- 10 files changed, 99 insertions(+), 7 deletions(-) create mode 100644 src/app/ui/optional_alert.cpp create mode 100644 src/app/ui/optional_alert.h diff --git a/data/pref.xml b/data/pref.xml index a66481875..f21e548bd 100644 --- a/data/pref.xml +++ b/data/pref.xml @@ -248,6 +248,10 @@
+
+