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:
committed by
waddlesplash
parent
39b50e1008
commit
f924bac3c7
@@ -178,6 +178,12 @@ StyledEditWindow::MessageReceived(BMessage* message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (message->what) {
|
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
|
// File menu
|
||||||
case MENU_SAVE:
|
case MENU_SAVE:
|
||||||
if (!fSaveMessage)
|
if (!fSaveMessage)
|
||||||
|
|||||||
Reference in New Issue
Block a user