diff options
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 c1538f60de..f519684d1f 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -431,8 +431,8 @@ void TextEditorWidget::update_title() void TextEditorWidget::open_sesame(const String& path) { - auto file = CFile::construct(path); - if (!file->open(CIODevice::ReadOnly)) { + auto file = Core::File::construct(path); + if (!file->open(Core::IODevice::ReadOnly)) { GMessageBox::show(String::format("Opening \"%s\" failed: %s", path.characters(), strerror(errno)), "Error", GMessageBox::Type::Error, GMessageBox::InputType::OK, window()); return; } |