Tracker: Fix BuildMimeTypeList(), styleish and correct

Thanks Axel for pointing out my error.
This commit is contained in:
John Scipione 2014-07-18 17:18:12 -04:00
parent da0fa55675
commit 4deecac061

View File

@ -3058,10 +3058,10 @@ BContainerWindow::EachAddon(bool (*eachAddon)(const Model*, const char*,
void void
BContainerWindow::BuildMimeTypeList(BObjectList<BString> &mimeTypes) BContainerWindow::BuildMimeTypeList(BObjectList<BString>& mimeTypes)
{ {
int32 count = PoseView()->SelectionList()->CountItems(); int32 count = PoseView()->SelectionList()->CountItems();
if (count > 0) { if (count <= 0) {
// just add the type of the current directory // just add the type of the current directory
AddMimeTypeString(mimeTypes, TargetModel()); AddMimeTypeString(mimeTypes, TargetModel());
} else { } else {