Commit 00d68423 authored by Jan Grulich's avatar Jan Grulich
Browse files

API change in libmm-qt

parent db5f92b8
......@@ -154,8 +154,8 @@ void ModemMonitor::requestPin(MMModemLock lock)
{
ModemManager::Sim::Ptr sim;
ModemManager::ModemDevice::Ptr modemDevice = ModemManager::findModemDevice(modem->uni());
if (modemDevice && !modemDevice->sims().isEmpty()) {
sim = modemDevice->sims().first();
if (modemDevice && modemDevice->sim()) {
sim = modemDevice->sim();
}
if (!sim) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment