[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.6/kdeplasma-addons/applets/rememberthemilk
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-27 23:23:44
Message-ID: 20110127232344.254F0AC8BB () svn ! kde ! org
[Download RAW message or body]

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));
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic