diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index 69b4e321d8..23831cb83f 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -282,7 +282,18 @@ BMenu::Archive(BMessage *data, bool deep) const if (err == B_OK) err = data->AddFloat("_maxwidth", fMaxContentWidth); if (err == B_OK && deep) { - // TODO store items and rects + int32 count = CountItems(); + for (int index=0; indexArchive(&itemData); + err = data->AddMessage("_items", &itemData); + if (err != B_OK) + break; + if (fLayout == B_ITEMS_IN_MATRIX) { + // TODO Store location of items + } + } } return err;