diff options
author | demolitions <demolitions@gmail.com> | 2016-03-18 23:37:31 +0100 |
---|---|---|
committer | demolitions <demolitions@gmail.com> | 2016-03-18 23:37:31 +0100 |
commit | fb58bafc540de18c94ebd4939547e3b564982a1b (patch) | |
tree | f66ae945e93515c4c3029640f285cdded617ee1d /tools | |
parent | db81ef92b5e22051e54644018909f73dd0cf9d01 (diff) |
Fixes #3942 - Throws an error when exporting for X11 with no filename
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/project_export.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/editor/project_export.cpp b/tools/editor/project_export.cpp index b5e7715d93..df8ebad08d 100644 --- a/tools/editor/project_export.cpp +++ b/tools/editor/project_export.cpp @@ -467,6 +467,14 @@ void ProjectExportDialog::_export_action(const String& p_file) { location=nl; } + /* Checked if the export location is outside the project directory, + * now will check if a file name has been entered */ + if (p_file.ends_with("/")) { + + error->set_text("Please enter a file name!"); + error->popup_centered_minsize(); + return; + } TreeItem *selected = platforms->get_selected(); if (!selected) @@ -1908,4 +1916,3 @@ ProjectExport::ProjectExport(EditorData* p_data) { } - |