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 {