From 8825a25a9dbe6ce266a085f236d5b23ac45e5dc1 Mon Sep 17 00:00:00 2001 From: sigurg Date: Wed, 3 Oct 2018 09:37:17 +0200 Subject: [PATCH] only save bt address after successful connection --- src/qmooshimeter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qmooshimeter.cpp b/src/qmooshimeter.cpp index 4a1ccb9..c90d735 100644 --- a/src/qmooshimeter.cpp +++ b/src/qmooshimeter.cpp @@ -453,10 +453,10 @@ void QMooshimeter::set_btaddr(const QString &addr) { btaddr = addr; emit btaddrChanged(); - settings.setValue("btaddr", btaddr); - settings.sync(); mm.reset(); connect(); + settings.setValue("btaddr", btaddr); + settings.sync(); }