summaryrefslogtreecommitdiffstats
path: root/bluetooth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bluetooth.cpp')
-rw-r--r--bluetooth.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/bluetooth.cpp b/bluetooth.cpp
index 3af6ac3..6e21ad1 100644
--- a/bluetooth.cpp
+++ b/bluetooth.cpp
@@ -56,7 +56,7 @@ void Bluetooth::setPower(bool state)
m_power = state;
- emit powerChanged();
+ emit powerChanged(m_power);
}
void Bluetooth::setDiscoverable(bool state)
@@ -219,7 +219,7 @@ void Bluetooth::onMessageReceived(MessageType type, Message *msg)
emit deviceListEvent(msg->replyData());
} else if (this->isPowerResponse(msg)) {
m_power = msg->replyData().value("power").toString() == "on";
- emit powerChanged();
+ emit powerChanged(m_power);
}
}