Skip to content

Commit

Permalink
only save bt address after successful connection
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurg committed Oct 3, 2018
1 parent c55a410 commit 8825a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qmooshimeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}


Expand Down

0 comments on commit 8825a25

Please sign in to comment.