diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/editor_help.cpp | 2 | ||||
-rw-r--r-- | tools/editor/project_export.cpp | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/tools/editor/editor_help.cpp b/tools/editor/editor_help.cpp index 238b2d1cb8..7a8805a5a1 100644 --- a/tools/editor/editor_help.cpp +++ b/tools/editor/editor_help.cpp @@ -92,7 +92,7 @@ void EditorHelpSearch::_update_search() { DocData *doc=EditorHelp::get_doc_data(); String term = search_box->get_text(); - if (term.length()<3) + if (term.length()<2) return; TreeItem *root = search_options->create_item(); 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) { } - |