Fix assert
This commit is contained in:
parent
7ed012e4a5
commit
8a019ccddf
2 changed files with 3 additions and 4 deletions
|
@ -14,8 +14,8 @@ find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)
|
|||
find_package(KF5 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons)
|
||||
find_package(KF5DocTools)
|
||||
find_package(Qca-qt5 2.1.0 REQUIRED)
|
||||
find_package(TelepathyQt5 0.9.5)
|
||||
find_package(TelepathyQt5Service 0.9.7)
|
||||
# find_package(TelepathyQt5 0.9.5)
|
||||
# find_package(TelepathyQt5Service 0.9.7)
|
||||
if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND)
|
||||
add_definitions(-DHAVE_TELEPATHY)
|
||||
endif()
|
||||
|
|
|
@ -134,12 +134,11 @@ void LanDeviceLink::userRequestsUnpair()
|
|||
|
||||
void LanDeviceLink::setPairStatus(PairStatus status)
|
||||
{
|
||||
DeviceLink::setPairStatus(status);
|
||||
if (status == Paired) {
|
||||
Q_ASSERT(KdeConnectConfig::instance()->trustedDevices().contains(deviceId()));
|
||||
Q_ASSERT(!mSocketLineReader->peerCertificate().isNull());
|
||||
KdeConnectConfig::instance()->setDeviceProperty(deviceId(), "certificate", mSocketLineReader->peerCertificate().toPem());
|
||||
}
|
||||
|
||||
DeviceLink::setPairStatus(status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue