@@ -1196,7 +1196,7 @@ MainWin::OpenPlaylistItem(const PlaylistItemRef& item)
|
|||||||
_PlaylistItemOpened(item, ret);
|
_PlaylistItemOpened(item, ret);
|
||||||
} else {
|
} else {
|
||||||
BString string;
|
BString string;
|
||||||
string << "Opening '" << item->Name() << "'.";
|
string.SetToFormat(B_TRANSLATE("Opening '%s'.", item->Name());
|
||||||
fControls->SetDisabledString(string.String());
|
fControls->SetDisabledString(string.String());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -150,6 +150,8 @@ FilePlaylistItem::GetAttribute(const Attribute& attribute,
|
|||||||
BString& string) const
|
BString& string) const
|
||||||
{
|
{
|
||||||
if (attribute == ATTR_STRING_NAME) {
|
if (attribute == ATTR_STRING_NAME) {
|
||||||
|
if (fRefs[0].name == NULL)
|
||||||
|
return B_NAME_NOT_FOUND;
|
||||||
string = fRefs[0].name;
|
string = fRefs[0].name;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user