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

List:       kde-commits
Subject:    KDE/kdepim/akregator/src
From:       David Faure <faure () kde ! org>
Date:       2009-07-02 13:25:19
Message-ID: 1246541119.319241.990.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 990396 by dfaure:

Fix crash (due to qtabwidget's emission of currentChanged before tabInserted, just like r990394).
BUG: 185597


 M  +3 -0      tabwidget.cpp  


--- trunk/KDE/kdepim/akregator/src/tabwidget.cpp #990395:990396
@@ -232,6 +232,9 @@
     for (int i = 0; i < q->count(); ++i)
     {
         Frame* f = frames.value(q->widget(i));
+        if (!f) {
+            continue; // frames is out of sync, e.g. because tabInserted wasn't called yet - #185597
+        }
         QString newTitle = f->title();
         if ( newTitle.length() > maxLength )
             newTitle = newTitle.left( maxLength-3 ) + "...";
[prev in list] [next in list] [prev in thread] [next in thread] 

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