x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[4.7.0-BUG] Two menu entry for one tab spawner

Hi I've just noticed that after registering a tab spawner in my plugin:

 void SMainTab::RegisterTab()
 {
     FGlobalTabmanager::Get()->RegisterNomadTabSpawner(TabID,
         FOnSpawnTab::CreateStatic(&ThisClass::SpawnTab))
         .SetDisplayName(FText::FromString(TEXT("ThePlugin")))
         .SetMenuType(ETabSpawnerMenuType::Enabled);
 }

This is what happens after launching.

alt text

After debugging I found the problem is in the MainFrame module in MainMenu::FillWindowMenu:162

 // Automatically populate tab spawners from TabManager
 if (TabManager.IsValid())
 {
     // Local editor tabs
     TabManager->PopulateLocalTabSpawnerMenu(MenuBuilder);
     
     // General tabs
     const IWorkspaceMenuStructure& MenuStructure = WorkspaceMenu::GetMenuStructure();
     TabManager->PopulateTabSpawnerMenu(MenuBuilder, MenuStructure.GetStructureRoot());
 }

It looks like removing the first call to PopulateLocalTabSpawnerMenu eliminates the problem. These two lines end up calling FTabManager::PopulateTabSpawnerMenu twice, adding two menu entries.

Product Version: Not Selected
Tags:
ue4-menu-bug.jpg (67.1 kB)
more ▼

asked Feb 05 '15 at 04:49 PM in Bug Reports

avatar image

omigamedev
85 9 7 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey omigamedev-

Thanks for bringing this to our attention. I have submitted this to our internal tracking database for further investigation (UE-9478).

Cheers

Doug Wilson

more ▼

answered Feb 09 '15 at 09:53 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question