From bb804d092e1aeb1a9245f1a90beb22950b936925 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 18 Jul 2014 10:43:54 -0400 Subject: [PATCH] Tracker: Make sure count > 0 ... in a more stylish way, no negative counts allowed. --- 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 ee99ab098a..0626900909 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -3058,7 +3058,7 @@ void BContainerWindow::BuildMimeTypeList(BObjectList &mimeTypes) { int32 count = PoseView()->SelectionList()->CountItems(); - if (!count) { + if (count > 0) { // just add the type of the current directory AddMimeTypeString(mimeTypes, TargetModel()); } else { @@ -3127,7 +3127,7 @@ BContainerWindow::BuildAddOnMenu(BMenu* menu) for (int32 index = 0; index < count; index++) menu->AddItem(primaryList.ItemAt(index)); - if (count != 0) + if (count > 0) menu->AddSeparatorItem(); count = secondaryList.CountItems();