Commit 95d17d3a authored by Jan Grulich's avatar Jan Grulich
Browse files

Use isEmpty() to check whether the list is empty

parent 3a8bfdaa
......@@ -154,7 +154,7 @@ void ModemMonitor::requestPin(MMModemLock lock)
{
ModemManager::Sim::Ptr sim;
ModemManager::ModemDevice::Ptr modemDevice = ModemManager::findModemDevice(modem->uni());
if (modemDevice && modemDevice->sims().count()) {
if (modemDevice && !modemDevice->sims().isEmpty()) {
sim = modemDevice->sims().first();
}
......
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