diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-26 00:47:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-26 01:31:24 +0100 |
commit | 6e5a73c11a6608bcaedcd472f4f65b547abd3b28 (patch) | |
tree | 7d0a0d51617a47daf037506cff7f28ec2d4ddd0c /Applications/TextEditor | |
parent | dd2ce8bc8fa45564cbba81b6e0fddd93dcec5c79 (diff) | |
download | serenity-6e5a73c11a6608bcaedcd472f4f65b547abd3b28.zip |
TextEditor+HexEditor: Tweak dirty document warning messages
Diffstat (limited to 'Applications/TextEditor')
-rw-r--r-- | Applications/TextEditor/TextEditorWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp index b57cd73a40..88587fb2cf 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -296,7 +296,7 @@ TextEditorWidget::TextEditorWidget() m_new_action = GUI::Action::create("New", { Mod_Ctrl, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/new.png"), [this](const GUI::Action&) { if (m_document_dirty) { - auto save_document_first_result = GUI::MessageBox::show(window(), "Save Document First?", "Warning", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::YesNoCancel); + auto save_document_first_result = GUI::MessageBox::show(window(), "Save changes to current document first?", "Warning", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::YesNoCancel); if (save_document_first_result == GUI::Dialog::ExecResult::ExecYes) m_save_action->activate(); if (save_document_first_result == GUI::Dialog::ExecResult::ExecCancel) @@ -316,7 +316,7 @@ TextEditorWidget::TextEditorWidget() return; if (m_document_dirty) { - auto save_document_first_result = GUI::MessageBox::show(window(), "Save Document First?", "Warning", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::YesNoCancel); + auto save_document_first_result = GUI::MessageBox::show(window(), "Save changes to current document first?", "Warning", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::YesNoCancel); if (save_document_first_result == GUI::Dialog::ExecResult::ExecYes) m_save_action->activate(); if (save_document_first_result == GUI::Dialog::ExecResult::ExecCancel) |