Commit 597f76f0 authored by Torsten Rahn's avatar Torsten Rahn Committed by Torsten Rahn
Browse files

Regression fix: Let the search listview show search results again.

parent 57c554e6
......@@ -51,7 +51,7 @@ bool BranchFilterProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex
// return true for all non folder children of m_branchIndex
if( sourceParent == m_branchIndex ) {
GeoDataObject* obj = qvariant_cast<GeoDataObject*>( rowIndex.data( MarblePlacemarkModel::ObjectPointerRole ) );
return dynamic_cast<const GeoDataContainer *>(obj);
return !dynamic_cast<const GeoDataContainer *>(obj);
}
// return true if rowIndex is a parent of m_branchIndex
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment