From d881bedfc05feed54fe1f521bea9fff6b489d79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 4 Oct 2008 20:33:20 +0000 Subject: [PATCH] * We must not sort the cached inodes, or else we mess up the order for CanOpenWithFilter(). * This fixes bug #2795. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27870 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/OpenWithWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kits/tracker/OpenWithWindow.cpp b/src/kits/tracker/OpenWithWindow.cpp index c52419cb18..5c78a2f7c7 100644 --- a/src/kits/tracker/OpenWithWindow.cpp +++ b/src/kits/tracker/OpenWithWindow.cpp @@ -1249,7 +1249,9 @@ SearchForSignatureEntryList::Rewind() return ENOENT; // build up the iterator - fIteratorList = new CachedEntryIteratorList; + fIteratorList = new CachedEntryIteratorList(false); + // We cannot sort the cached inodes, as CanOpenWithFilter() relies + // on the fact that ConditionalAllAppsIterator results come last. // build the predicate string by oring queries for the individual // signatures