Tracker: Make sure count > 0

... in a more stylish way, no negative counts allowed.
This commit is contained in:
John Scipione 2014-07-18 10:43:54 -04:00
parent 6527415d5a
commit bb804d092e

View File

@ -3058,7 +3058,7 @@ void
BContainerWindow::BuildMimeTypeList(BObjectList<BString> &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();