aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/project_export.cpp
diff options
context:
space:
mode:
authordemolitions2016-03-18 23:37:31 +0100
committerRémi Verschelde2016-04-02 22:13:14 +0200
commit41cc4ffe98504e78514c412fa0c51db26c46e978 (patch)
treea7e8ef47df7c2f1aa5134f511f8285cd4338d2e9 /tools/editor/project_export.cpp
parent0ea354c12a82838015b8dc07402504bad0c1a0fd (diff)
downloadgodot-41cc4ffe98504e78514c412fa0c51db26c46e978.tar.gz
godot-41cc4ffe98504e78514c412fa0c51db26c46e978.tar.zst
godot-41cc4ffe98504e78514c412fa0c51db26c46e978.zip
Fixes #3942 - Throws an error when exporting for X11 with no filename
(cherry picked from commit fb58bafc540de18c94ebd4939547e3b564982a1b)
Diffstat (limited to 'tools/editor/project_export.cpp')
-rw-r--r--tools/editor/project_export.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/editor/project_export.cpp b/tools/editor/project_export.cpp
index b5e7715d9..df8ebad08 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) {
}
-