From kde-commits Thu Jan 27 23:23:44 2011 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Thu, 27 Jan 2011 23:23:44 +0000 To: kde-commits Subject: branches/KDE/4.6/kdeplasma-addons/applets/rememberthemilk Message-Id: <20110127232344.254F0AC8BB () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129617066809411 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)); }