hrev47521 adds 1 changeset to branch 'master' old head: da0fa5567596f957ea0515f96522b4b7cf2c2615 new head: 4deecac06145277bb0e0f650be7725880c780f44 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=4deecac+%5Eda0fa55 ---------------------------------------------------------------------------- 4deecac: Tracker: Fix BuildMimeTypeList(), styleish and correct Thanks Axel for pointing out my error. [ John Scipione <jscipione@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev47521 Commit: 4deecac06145277bb0e0f650be7725880c780f44 URL: http://cgit.haiku-os.org/haiku/commit/?id=4deecac Author: John Scipione <jscipione@xxxxxxxxx> Date: Fri Jul 18 21:18:12 2014 UTC ---------------------------------------------------------------------------- 1 file changed, 2 insertions(+), 2 deletions(-) src/kits/tracker/ContainerWindow.cpp | 4 ++-- ---------------------------------------------------------------------------- diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index 3502398..235641d 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<BString> &mimeTypes) +BContainerWindow::BuildMimeTypeList(BObjectList<BString>& mimeTypes) { int32 count = PoseView()->SelectionList()->CountItems(); - if (count > 0) { + if (count <= 0) { // just add the type of the current directory AddMimeTypeString(mimeTypes, TargetModel()); } else {