StyledEdit: Fix New menu item after hrev54812

Change-Id: I583bc43dc64d46e92e20e46da9a894c489617d43
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3563
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Pascal Abresch
2020-12-30 17:36:10 +00:00
committed by waddlesplash
parent 39b50e1008
commit f924bac3c7
+6
View File
@@ -178,6 +178,12 @@ StyledEditWindow::MessageReceived(BMessage* message)
}
switch (message->what) {
case MENU_NEW:
// this is because of the layout menu change,
// it is too early to connect to a different looper there
// so either have to redirect it here, or change the invocation
be_app->PostMessage(message);
break;
// File menu
case MENU_SAVE:
if (!fSaveMessage)