From 4deecac06145277bb0e0f650be7725880c780f44 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 18 Jul 2014 17:18:12 -0400 Subject: [PATCH] Tracker: Fix BuildMimeTypeList(), styleish and correct Thanks Axel for pointing out my error. --- src/kits/tracker/ContainerWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index 35023981b0..235641d176 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -3058,10 +3058,10 @@ BContainerWindow::EachAddon(bool (*eachAddon)(const Model*, const char*, void -BContainerWindow::BuildMimeTypeList(BObjectList &mimeTypes) +BContainerWindow::BuildMimeTypeList(BObjectList& mimeTypes) { int32 count = PoseView()->SelectionList()->CountItems(); - if (count > 0) { + if (count <= 0) { // just add the type of the current directory AddMimeTypeString(mimeTypes, TargetModel()); } else {