diff options
author | Karol Kosek <krkk@serenityos.org> | 2022-02-14 15:47:37 +0100 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-02-20 08:40:26 -0500 |
commit | 410254dbe2924112aca0ff2a1ed8c735ceb9ee52 (patch) | |
tree | 0ed370002fcdbfe6de60fe11153121b2452b7a1f | |
parent | 42d19977b33e2d0c3309b299a5a24aaf513442fd (diff) | |
download | serenity-410254dbe2924112aca0ff2a1ed8c735ceb9ee52.zip |
Spreadsheet: Use the system-wide unsaved changes dialog
-rw-r--r-- | Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp index 5976465ef1..cc320b7974 100644 --- a/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp +++ b/Userland/Applications/Spreadsheet/SpreadsheetWidget.cpp @@ -421,8 +421,7 @@ bool SpreadsheetWidget::request_close() if (!m_workbook->dirty()) return true; - auto result = GUI::MessageBox::show(window(), "The spreadsheet has been modified. Would you like to save?", "Unsaved changes", GUI::MessageBox::Type::Warning, GUI::MessageBox::InputType::YesNoCancel); - + auto result = GUI::MessageBox::ask_about_unsaved_changes(window(), current_filename()); if (result == GUI::MessageBox::ExecYes) { if (current_filename().is_empty()) { String name = "workbook"; |