Show localized names in Deskbar's Recent applications menu.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41169 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2011-04-03 06:33:01 +00:00
parent 00a625f4b8
commit a1b4aa7b94

View File

@ -574,14 +574,14 @@ TRecentsMenu::AddRecents(int32 count)
if (doc.CountNames(B_REF_TYPE) > 0) { if (doc.CountNames(B_REF_TYPE) > 0) {
// create recents menu that will contain the recent docs of // create recents menu that will contain the recent docs of
// this app // this app
TRecentsMenu* docs = new TRecentsMenu(ref.name, fBarView, TRecentsMenu* docs = new TRecentsMenu(model.Name(),
kRecentAppDocuments, signature, &ref); fBarView, kRecentAppDocuments, signature, &ref);
docs->SetTypesList(TypesList()); docs->SetTypesList(TypesList());
docs->SetTarget(Target()); docs->SetTarget(Target());
item = new ModelMenuItem(&model, docs); item = new ModelMenuItem(&model, docs);
} else } else
item = new ModelMenuItem(&model, ref.name, NULL); item = new ModelMenuItem(&model, model.Name(), NULL);
if (item) { if (item) {
// add refs-message so that the recent app can be launched // add refs-message so that the recent app can be launched