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