fix bluescreen in ci menu when no entries in a menulist an ok is pressed
[enigma2.git] / lib / dvb_ci / dvbci_ui.cpp
index ddb42fd..2391145 100644 (file)
@@ -43,7 +43,11 @@ eDVBCI_UI *eDVBCI_UI::getInstance()
 int eDVBCI_UI::getState(int slot)
 {
        if (slot < MAX_SLOTS)
+       {
+               if (eDVBCIInterfaces::getInstance()->getSlotState(slot) == eDVBCISlot::stateInvalid)
+                       eDVBCIInterfaces::getInstance()->reset(slot);
                return slotdata[slot].state;
+       }
        return 0;
 }