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

List:       kde-commits
Subject:    branches/KDE/4.3/kdeplasma-addons/applets/comic
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-07-05 7:58:42
Message-ID: 1246780722.418632.24643.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 991516 by aseigo:

don't bother if the tab index is greater than the tab count
BUG:198767



 M  +4 -0      comic.cpp  


--- branches/KDE/4.3/kdeplasma-addons/applets/comic/comic.cpp #991515:991516
@@ -484,6 +484,10 @@
 
 void ComicApplet::slotTabChanged( int newIndex )
 {
+    if (newIndex >= mTabIdentifier.count()) {
+        return;
+    }
+
     bool differentComic = ( mComicIdentifier != mTabIdentifier.at( newIndex ) );
     mComicIdentifier = mTabIdentifier.at( newIndex );
     changeComic( differentComic );
[prev in list] [next in list] [prev in thread] [next in thread] 

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