mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 03:08:11 +00:00
Spreadsheet: Prompt user before closing with unsaved changes
This commit is contained in:
parent
23febb9d8e
commit
5f58fe1643
6 changed files with 44 additions and 1 deletions
|
@ -163,8 +163,10 @@ void Sheet::update()
|
|||
|
||||
// Grab a copy as updates might insert cells into the table.
|
||||
for (auto& it : m_cells) {
|
||||
if (it.value->dirty())
|
||||
if (it.value->dirty()) {
|
||||
cells_copy.append(it.value);
|
||||
m_workbook.set_dirty(true);
|
||||
}
|
||||
}
|
||||
|
||||
for (auto& cell : cells_copy)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue