MediaConverter: Work-around crashing bug.
This commit is contained in:
parent
4dcf7ed2f5
commit
0ef692e702
@ -57,7 +57,12 @@ public:
|
||||
virtual bool Filter(const entry_ref* ref,
|
||||
BNode* node, struct stat_beos* st, const char* filetype)
|
||||
{
|
||||
return node->IsDirectory();
|
||||
// ToDo: Fix this properly in Tracker
|
||||
// If you create a folder, then rename it, node is NULL.
|
||||
// The BeBook says: "Note that the function is never sent an
|
||||
// abstract entry, so the node, st, and filetype arguments will
|
||||
// always be valid."
|
||||
return node == NULL ? false : node->IsDirectory();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user