strange sanity check required

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4248 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2003-08-09 05:19:34 +00:00
parent aa9dc9ead8
commit 4fd5206630

View File

@ -664,11 +664,14 @@ StyledEditWindow::MenusBeginning()
int count = 0;
entry_ref ref;
while (documents.FindRef("refs",count++,&ref) == B_OK) {
BMessage * openRecent = new BMessage(B_REFS_RECEIVED);
openRecent->AddRef("refs",&ref);
BMenuItem * item = new BMenuItem(ref.name,openRecent);
item->SetTarget(be_app);
fRecentMenu->AddItem(item);
if ((ref.device != -1) && (ref.directory != -1)) {
// sanity check passed
BMessage * openRecent = new BMessage(B_REFS_RECEIVED);
openRecent->AddRef("refs",&ref);
BMenuItem * item = new BMenuItem(ref.name,openRecent);
item->SetTarget(be_app);
fRecentMenu->AddItem(item);
}
}
// update the font menu be/interface/GraphicsDefs.h