summaryrefslogtreecommitdiff
path: root/sowatchui
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-03-28 13:02:18 +0100
committerJavier S. Pedro <maemo@javispedro.com>2013-03-28 13:02:18 +0100
commitcb04065d6a84bb54b485d0ad8715f09a76191412 (patch)
treea54f4c6f2c217e3319e30bfb36f8c09f1bd2a153 /sowatchui
parent924de2248526430a8fee67582f510fc89a3786d4 (diff)
downloadsowatch-cb04065d6a84bb54b485d0ad8715f09a76191412.tar.gz
sowatch-cb04065d6a84bb54b485d0ad8715f09a76191412.zip
disable connection timer when bluetooth is off
Diffstat (limited to 'sowatchui')
-rw-r--r--sowatchui/watchesmodel.cpp4
1 files changed, 3 insertions, 1 deletions
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]);