mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-10 11:42:25 +00:00
[Linux] Fix build
This commit is contained in:
committed by
Tim Gromeyer
parent
6574e52195
commit
070713540a
@@ -647,11 +647,11 @@ private slots:
|
|||||||
LOG_INFO("Already connected to the phone");
|
LOG_INFO("Already connected to the phone");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QBluetoothAddress phoneAddress(PHONE_MAC_ADDRESS);
|
QBluetoothAddress phoneAddress("00:00:00:00:00:00"); // Default address, will be overwritten if PHONE_MAC_ADDRESS is set
|
||||||
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||||
if (!env.value("PHONE_MAC_ADDRESS").isEmpty())
|
if (!env.value("PHONE_MAC_ADDRESS").isEmpty())
|
||||||
{
|
{
|
||||||
QBluetoothAddress phoneAddress = QBluetoothAddress(env.value("PHONE_MAC_ADDRESS"));
|
phoneAddress = QBluetoothAddress(env.value("PHONE_MAC_ADDRESS"));
|
||||||
}
|
}
|
||||||
phoneSocket = new QBluetoothSocket(QBluetoothServiceInfo::L2capProtocol);
|
phoneSocket = new QBluetoothSocket(QBluetoothServiceInfo::L2capProtocol);
|
||||||
connect(phoneSocket, &QBluetoothSocket::connected, this, [this]() {
|
connect(phoneSocket, &QBluetoothSocket::connected, this, [this]() {
|
||||||
|
|||||||
Reference in New Issue
Block a user