Tracker: initialize menus after the PoseView has been added to the window.

Fixes #11819.
This commit is contained in:
Augustin Cavalier 2015-03-02 13:33:53 -05:00
parent 1d329e209a
commit 1f68e420cc

View File

@ -661,9 +661,6 @@ TFilePanel::Init(const BMessage*)
fMenuBar->SetBorder(B_BORDER_FRAME);
fBackView->AddChild(fMenuBar);
AddMenus();
AddContextMenus();
FavoritesMenu* favorites = new FavoritesMenu(B_TRANSLATE("Favorites"),
new BMessage(kSwitchDirectory), new BMessage(B_REFS_RECEIVED),
BMessenger(this), IsSavePanel(), fPoseView->RefFilter());
@ -856,6 +853,9 @@ TFilePanel::Init(const BMessage*)
RestoreState();
AddMenus();
AddContextMenus();
PoseView()->ScrollTo(B_ORIGIN);
PoseView()->UpdateScrollRange();
PoseView()->ScrollTo(B_ORIGIN);