1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

HexEditor: Fix nullptr pass to AboutDialog and clean up menus

Refactors menubar creation to avoid a null parent window during
construction; moves search options to the more traditional edit
menu; creates and exclusive action group for bytes per row

Fixes #5177 in part
This commit is contained in:
thankyouverycool 2021-02-26 07:07:13 -05:00 committed by Andreas Kling
parent fb5cdc670f
commit a2e935e7a2
3 changed files with 39 additions and 27 deletions

View file

@ -26,6 +26,7 @@
#include "HexEditorWidget.h"
#include <LibGUI/Icon.h>
#include <LibGUI/MenuBar.h>
#include <LibGfx/Bitmap.h>
#include <stdio.h>
@ -57,6 +58,10 @@ int main(int argc, char** argv)
return GUI::Window::CloseRequestDecision::StayOpen;
};
auto menubar = GUI::MenuBar::construct();
hex_editor_widget.initialize_menubar(menubar);
app->set_menubar(menubar);
window->show();
window->set_icon(app_icon.bitmap_for_size(16));