[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

kdenonbeta/kdedebian/kapture



CVS commit by mornfall: 

Fix a crasher in ListTreeWidget::contextMenu (). Alsoa slight format
change in libcapture/filters.h.


  M +2 -1      libcapture/filters.h   1.19
  M +4 -0      libkapture/listtreewidget.cpp   1.31


--- kdenonbeta/kdedebian/kapture/libcapture/filters.h  #1.18:1.19
@@ -38,5 +38,6 @@
 namespace capture {
 
-    /* FilterGrouper - base class for all filtering groupers         {{{ */
+    // FilterGrouper - base class for all filtering groupers           {{{
+    // ----------------------------------------------------------------------
     class FilterGrouper : public Grouper
     {

--- kdenonbeta/kdedebian/kapture/libkapture/listtreewidget.cpp  #1.30:1.31
@@ -268,5 +268,9 @@ void ListTreeWidget::contextMenu (QListV
 {
     std::cerr << "ListTreeWidget::contextMenu (p);" <<  std::endl;
+    if (! it)
+        return;
     m_itemWithMenu = dynamic_cast <KListViewItemCustom *> (it) -> m_treeNode;
+    if (! m_itemWithMenu)
+        return;
     QPopupMenu *m = new QPopupMenu (this);
     if (pkgCElem (**m_itemWithMenu)) {




Reply to: