From cb04065d6a84bb54b485d0ad8715f09a76191412 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 28 Mar 2013 13:02:18 +0100 Subject: disable connection timer when bluetooth is off --- sowatchui/watchesmodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sowatchui/watchesmodel.cpp') diff --git a/sowatchui/watchesmodel.cpp b/sowatchui/watchesmodel.cpp index f8afcd4..0f1fa3d 100644 --- a/sowatchui/watchesmodel.cpp +++ b/sowatchui/watchesmodel.cpp @@ -88,12 +88,14 @@ void WatchesModel::addFoundWatch(const QVariantMap &info) QString name = base.arg(""); int num = 1; + // Create the setting keys in numerical order + // e.g. if watch1 is already existing, use watch2, etc. while (existing.contains(name)) { num++; name = base.arg(num); } - // Load the autodetected settings + // Load the autodetected settings into the new key ConfigKey* newkey = _config->getSubkey(name); foreach (const QString& key, info.keys()) { newkey->set(key, info[key]); -- cgit v1.2.3