Skip to content

Commit

Permalink
HexEditor: Clarify in InputBox which offset (Hex/Dec) you're Going To
Browse files Browse the repository at this point in the history
  • Loading branch information
JamiKettunen authored and awesomekling committed Jan 1, 2020
1 parent 14cdd3f commit 7f15604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Applications/HexEditor/HexEditorWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ HexEditorWidget::HexEditorWidget()
}

m_goto_decimal_offset_action = GAction::create("Go To Offset (Decimal)...", GraphicsBitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](const GAction&) {
auto input_box = GInputBox::construct("Enter offset:", "Go To", this);
auto input_box = GInputBox::construct("Enter Decimal offset:", "Go To", this);
if (input_box->exec() == GInputBox::ExecOK && !input_box->text_value().is_empty()) {
auto valid = false;
auto new_offset = input_box->text_value().to_int(valid);
Expand All @@ -139,7 +139,7 @@ HexEditorWidget::HexEditorWidget()
});

m_goto_hex_offset_action = GAction::create("Go To Offset (Hex)...", GraphicsBitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](const GAction&) {
auto input_box = GInputBox::construct("Enter offset:", "Go To", this);
auto input_box = GInputBox::construct("Enter Hex offset:", "Go To", this);
if (input_box->exec() == GInputBox::ExecOK && !input_box->text_value().is_empty()) {
auto new_offset = strtol(input_box->text_value().characters(), nullptr, 16);
m_editor->set_position(new_offset);
Expand Down

0 comments on commit 7f15604

Please sign in to comment.