Skip to content

Commit

Permalink
StyledEdit:EncodingMenu: autodetect on root menu entry
Browse files Browse the repository at this point in the history
  • Loading branch information
siarzhuk committed Jan 18, 2013
1 parent 29155ba commit ad834f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/stylededit/StyledEditWindow.cpp
Expand Up @@ -1291,9 +1291,11 @@ StyledEditWindow::_InitWindow(uint32 encoding)
fWrapItem->SetMarked(true);
fWrapItem->SetShortcut('W', B_OPTION_KEY);

BMessage *message = new BMessage(MENU_RELOAD);
message->AddString("encoding", "auto");
menu->AddItem(fEncodingItem = new BMenuItem(PopulateEncodingMenu(
new BMenu(B_TRANSLATE("Text encoding")), "UTF-8"),
new BMessage(MENU_RELOAD)));
message));
fEncodingItem->SetEnabled(false);

menu->AddSeparatorItem();
Expand Down

0 comments on commit ad834f7

Please sign in to comment.