mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
TextEditor: Exit program when file is not opened
When trying to open files not permitted by the user, display the error message and exit.
This commit is contained in:
parent
67f01fd82e
commit
5df34f6567
3 changed files with 9 additions and 6 deletions
|
@ -40,7 +40,7 @@ class TextEditorWidget final : public GUI::Widget {
|
|||
C_OBJECT(TextEditorWidget)
|
||||
public:
|
||||
virtual ~TextEditorWidget() override;
|
||||
void open_file(const String& path);
|
||||
bool open_file(const String& path);
|
||||
bool request_close();
|
||||
|
||||
GUI::TextEditor& editor() { return *m_editor; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue