[Bug 248256] When I unsubscribe a newgroup KNode crashes [KPIM::FolderTreeWidgetItemLabelColumnDelegate::paint, QTreeView::drawRow, ..., KNCollectionView::paintEvent]

Olivier Trichet nive at nivalis.org
Sun Jan 2 18:14:31 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=248256


Olivier Trichet <nive at nivalis.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #12 from Olivier Trichet <nive nivalis org>  2011-01-02 19:14:25 ---
commit 4cb6e7c84920e7bec3813a431fd086eeed447f05
branch master
Author: Olivier Trichet <nive at nivalis.org>
Date:   Sun Jan 2 18:50:02 2011 +0100

    Crash when unsubscribing from a newsgroup

    The event loop was reentered and the KNCollectionViewItem being deleted
    was reaccessed to update the display.
    Worked around: hide the item before deleting it.

    BUG: 248256

diff --git a/knode/kncollectionview.cpp b/knode/kncollectionview.cpp
index 42cc70b..9bf1676 100644
--- a/knode/kncollectionview.cpp
+++ b/knode/kncollectionview.cpp
@@ -171,6 +171,7 @@ void KNCollectionView::removeGroup( KNGroup::Ptr g )
   if (!g->listItem())
     return;

+  g->listItem()->setHidden( true ); // work around bug 248256
   delete g->listItem();
   g->setListItem(0);
 }

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list