Tracker: initialize menus after the PoseView has been added to the window.
Fixes #11819.
This commit is contained in:
parent
1d329e209a
commit
1f68e420cc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user