修复编译错误

This commit is contained in:
Yue-Lan 2023-05-18 15:37:31 +08:00
parent 4307d85905
commit 680c968a88
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ static bool IsHuawei()
} }
static QString BluetoothPlugin::getDefaultAdapterAddr() static QString getDefaultAdapterAddr()
{ {
QString reply_res; QString reply_res;
QDBusInterface iface("com.ukui.bluetooth", QDBusInterface iface("com.ukui.bluetooth",
@ -119,7 +119,7 @@ QList<QAction *> BluetoothPlugin::menuActions(Peony::MenuPluginInterface::Types
// QString str_output = output; // QString str_output = output;
// if(!str_output.contains(QString("bluetooth"), Qt::CaseInsensitive)) // if(!str_output.contains(QString("bluetooth"), Qt::CaseInsensitive))
// return actions; // return actions;
QString m_defaultAdapterAddr = BluetoothPlugin::getDefaultAdapterAddr(); QString m_defaultAdapterAddr = getDefaultAdapterAddr();
if (m_defaultAdapterAddr.isEmpty() || 6 != m_defaultAdapterAddr.split(":").size()) if (m_defaultAdapterAddr.isEmpty() || 6 != m_defaultAdapterAddr.split(":").size())
{ {
qInfo() << Q_FUNC_INFO << m_defaultAdapterAddr << endl; qInfo() << Q_FUNC_INFO << m_defaultAdapterAddr << endl;