Tracker: Fix BuildMimeTypeList(), styleish and correct
Thanks Axel for pointing out my error.
This commit is contained in:
parent
da0fa55675
commit
4deecac061
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user