[KPhotoAlbum] Category view problem

Robert Krawitz rlk at alum.mit.edu
Tue Feb 19 02:18:18 CET 2013


On Mon, 18 Feb 2013 20:26:51 +0530, Miika Turkia wrote:
> So is this a fix to the whole issue? Ready to be pushed to master?

This is the other fix (for not being able to untag a sub or
supercategory):

diff --git a/AnnotationDialog/ListSelect.cpp b/AnnotationDialog/ListSelect.cpp
index 827066f..53f78ad 100644
--- a/AnnotationDialog/ListSelect.cpp
+++ b/AnnotationDialog/ListSelect.cpp
@@ -196,8 +196,11 @@ void AnnotationDialog::ListSelect::setMode( UsageMode mode )
         _or->hide();
         _showSelectedOnly->show();
     }
-    for ( QTreeWidgetItemIterator itemIt( _treeWidget ); *itemIt; ++itemIt )
-        configureItem( dynamic_cast<CategoryListView::CheckDropItem*>(*itemIt) );
+
+#ifdef COMMENTED_OUT_DURING_PORTING
+     for ( QTreeWidgetItemIterator itemIt( _treeWidget ); *itemIt; ++itemIt )
+         configureItem( dynamic_cast<CategoryListView::CheckDropItem*>(*itemIt) );
+#endif // COMMENTED_OUT_DURING_PORTING
 
     // ensure that the selection count indicator matches the current mode:
     updateSelectionCount();

-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

MIT VI-3 1987 - Congratulations MIT Engineers men's hoops Final Four!
Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom  --  http://ProgFree.org
Project lead for Gutenprint   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton


More information about the KPhotoAlbum mailing list