* 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);
|
BMimeType entryType(type);
|
||||||
// filter non executable entries (like "transport" subfolder...)
|
// filter non executable entries (like "transport" subfolder...)
|
||||||
if (entryType == B_APP_MIME_TYPE) {
|
if (entryType == B_APP_MIME_TYPE) {
|
||||||
BPath path;
|
BPath transportPath;
|
||||||
if (entry.GetPath(&path) != B_OK)
|
if (entry.GetPath(&transportPath) != B_OK)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
BMessage* msg = new BMessage(what);
|
BMessage* msg = new BMessage(what);
|
||||||
msg->AddString("name", path.Leaf());
|
msg->AddString("name", transportPath.Leaf());
|
||||||
menu->AddItem(new BMenuItem(path.Leaf(), msg));
|
menu->AddItem(new BMenuItem(transportPath.Leaf(), msg));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user