mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 14:38:12 +00:00
TextEditorWidget: Stop dbgprintf from printing null
This commit is contained in:
parent
fdb365856d
commit
1f77fbb75c
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,6 @@ TextEditorWidget::TextEditorWidget()
|
||||||
if (!save_name.has_value())
|
if (!save_name.has_value())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dbgprintf("Writing document to '%s'\n", save_name.value());
|
|
||||||
if (!m_editor->write_to_file(save_name.value())) {
|
if (!m_editor->write_to_file(save_name.value())) {
|
||||||
GMessageBox::show("Unable to save file.\n", "Error", GMessageBox::Type::Error, window());
|
GMessageBox::show("Unable to save file.\n", "Error", GMessageBox::Type::Error, window());
|
||||||
return;
|
return;
|
||||||
|
@ -63,6 +62,7 @@ TextEditorWidget::TextEditorWidget()
|
||||||
|
|
||||||
m_path = save_name.value();
|
m_path = save_name.value();
|
||||||
window()->set_title(String::format("Text Editor: %s", m_path.characters()));
|
window()->set_title(String::format("Text Editor: %s", m_path.characters()));
|
||||||
|
dbgprintf("Wrote document to '%s'\n", m_path.characters());
|
||||||
});
|
});
|
||||||
|
|
||||||
auto menubar = make<GMenuBar>();
|
auto menubar = make<GMenuBar>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue