* CID 5322: renamed parameter to "transportPath" to
not hide parameter "path". git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39991 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -324,13 +324,13 @@ AddPrinterDialog::_FillMenu(BMenu* menu, const char* path, uint32 what)
|
||||
BMimeType entryType(type);
|
||||
// filter non executable entries (like "transport" subfolder...)
|
||||
if (entryType == B_APP_MIME_TYPE) {
|
||||
BPath path;
|
||||
if (entry.GetPath(&path) != B_OK)
|
||||
BPath transportPath;
|
||||
if (entry.GetPath(&transportPath) != B_OK)
|
||||
continue;
|
||||
|
||||
BMessage* msg = new BMessage(what);
|
||||
msg->AddString("name", path.Leaf());
|
||||
menu->AddItem(new BMenuItem(path.Leaf(), msg));
|
||||
msg->AddString("name", transportPath.Leaf());
|
||||
menu->AddItem(new BMenuItem(transportPath.Leaf(), msg));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user