|
@@ -302,8 +302,6 @@ MainWidget::MainWidget()
|
|
GUI::MessageBox::show(window(), "Unable to save file.\n", "Error", GUI::MessageBox::Type::Error);
|
|
GUI::MessageBox::show(window(), "Unable to save file.\n", "Error", GUI::MessageBox::Type::Error);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
- editor().document().set_unmodified();
|
|
|
|
// FIXME: It would be cool if this would propagate from GUI::TextDocument somehow.
|
|
// FIXME: It would be cool if this would propagate from GUI::TextDocument somehow.
|
|
window()->set_modified(false);
|
|
window()->set_modified(false);
|
|
|
|
|
|
@@ -316,7 +314,6 @@ MainWidget::MainWidget()
|
|
if (!m_editor->write_to_file(m_path)) {
|
|
if (!m_editor->write_to_file(m_path)) {
|
|
GUI::MessageBox::show(window(), "Unable to save file.\n", "Error", GUI::MessageBox::Type::Error);
|
|
GUI::MessageBox::show(window(), "Unable to save file.\n", "Error", GUI::MessageBox::Type::Error);
|
|
} else {
|
|
} else {
|
|
- editor().document().set_unmodified();
|
|
|
|
// FIXME: It would be cool if this would propagate from GUI::TextDocument somehow.
|
|
// FIXME: It would be cool if this would propagate from GUI::TextDocument somehow.
|
|
window()->set_modified(false);
|
|
window()->set_modified(false);
|
|
|
|
|