diff --git a/plugins/bluetooth/bluetoothmainwidget.cpp b/plugins/bluetooth/bluetoothmainwidget.cpp index ab8649af2..b110bbf58 100644 --- a/plugins/bluetooth/bluetoothmainwidget.cpp +++ b/plugins/bluetooth/bluetoothmainwidget.cpp @@ -83,7 +83,7 @@ bool BluetoothMainWidget::eventFilter(QObject *watcher, QEvent *event) case QEvent::MouseButtonRelease: { bool status = !(isOpen()); for (const Adapter *adapter : m_adapterManager->adapters()) - const_cast(adapter)->setPowered(status); + m_adapterManager->setAdapterPowered(adapter, status); return true; }