From 86533433970d258214cee0210b216a55266982cb Mon Sep 17 00:00:00 2001 From: Martin Renold Date: Sun, 27 Mar 2011 18:27:08 +0200 Subject: [PATCH] saving: ask for confirmation for >=8s of work Before, there was a confirmation dialog only for >= 30s of work. --- gui/filehandling.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/filehandling.py b/gui/filehandling.py index cdc4436..6f3cdaf 100644 --- a/gui/filehandling.py +++ b/gui/filehandling.py @@ -180,9 +180,10 @@ class FileHandler(object): dialog_set_filename(dialog, filename+ext) def confirm_destructive_action(self, title=_('Confirm'), question=_('Really continue?')): + self.doc.model.split_stroke() # finish stroke in progress t = self.doc.model.unsaved_painting_time - if t < 30: - # no need to ask + # enough changes to bother asking? (useful for fast develop-and-test) + if t < 8: # (used to be 30, see https://gna.org/bugs/?17955) return True if t > 120: -- 2.11.0