http://bugs.meego.com/show_bug.cgi?id=3566
--- Comment #4 from jku <jku(a)linux.intel.com> 2010-07-16 07:03:31 PDT ---
After a few iterations, I think I've got a usable version in jku:
commit bf55c2b9dad72fd6f9db71e50842453a24c62801
Author: Jussi Kukkonen <jku(a)linux.intel.com>
Date: Fri Jul 16 10:25:27 2010 +0300
prevent overwriting device configs by accident (MBC #3566,1194)
Currently the configuration name for a new config is the
fingerPrint and it overwrites any existing configuration.
This commit starts using deviceName as the base name and adds a
incremental number to the end if a configuration already exists
for that name.
In more detail, the save session is started with the DeviceName as the config
name. Before saving, the code runs GetConfigs() and proceeds only if it gets
SYNCEVO_DBUS_ERROR_NO_SUCH_CONFIG. If there is no error (in other words the
config exists already), a new session is started with name "original_name__N"
where N is a increasing integer and the same happens again.
--
Configure bugmail:
http://bugs.meego.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching someone on the CC list of the bug.