SVN commit 1217585 by aseigo: bounds check pos BUG:202918 M +3 -0 rememberthemilk-plasmoid.cpp --- branches/KDE/4.6/kdeplasma-addons/applets/rememberthemilk/rememberthemilk-plasmoid.cpp #1217584:1217585 @@ -218,6 +218,9 @@ void RememberTheMilkPlasmoid::listChanged(int pos) { + if (pos < 0 || pos >= m_lists.size()) + return; + config().writeEntry("CurrentList", pos); m_model->switchToList(m_lists.at(pos)); }