From eb4c5cc4472b16ce10401611140381e5ba5b6aca Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Fri, 8 Apr 2011 07:09:54 +0200 Subject: Imported Upstream version 0.4.0~alpha4 --- rapid/prefsrapid.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rapid/prefsrapid.py') diff --git a/rapid/prefsrapid.py b/rapid/prefsrapid.py index 82079ec..491d75d 100644 --- a/rapid/prefsrapid.py +++ b/rapid/prefsrapid.py @@ -165,6 +165,15 @@ class RapidPreferences(prefs.Preferences): return True return False + def must_synchronize_raw_jpg(self): + """Returns True if synchronize_raw_jpg is True and photo renaming + uses sequence values""" + if self.synchronize_raw_jpg: + for s in LIST_SEQUENCE_L1: + if self._pref_list_uses_component(self.image_rename, s, 1): + return True + return False + def any_pref_uses_stored_sequence_no(self): """Returns True if any of the pref lists contain a stored sequence no""" for pref_list in self._get_pref_lists(): -- cgit v1.2.3