From 3a5802435f529f98f55836e6e86abdd2e21dfb38 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Fri, 13 Aug 2010 11:48:05 +0200 Subject: [PATCH] Only save results on quit if the results are actually modified. --- core/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/app.py b/core/app.py index 155c9df9..75d36273 100644 --- a/core/app.py +++ b/core/app.py @@ -319,7 +319,8 @@ class DupeGuru(RegistrableApplication, Broadcaster): if not op.exists(self.appdata): os.makedirs(self.appdata) self.directories.save_to_file(op.join(self.appdata, 'last_directories.xml')) - self.results.save_to_xml(op.join(self.appdata, 'last_results.xml')) + if self.results.is_modified: + self.results.save_to_xml(op.join(self.appdata, 'last_results.xml')) def save_ignore_list(self): if not op.exists(self.appdata):